1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-06 20:10:05 +00:00

fix(sas9-support): throw error with invalid credentials

This commit is contained in:
Krishna Acondy
2021-05-28 08:52:00 +01:00
parent fe907e1c43
commit e79089b880
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
export class SAS9AuthError extends Error {
constructor() {
super(
'The credentials you provided cannot be authenticated. Please provide a valid set of credentials.'
)
this.name = 'AuthorizeError'
Object.setPrototypeOf(this, SAS9AuthError.prototype)
}
}