665ae063fa
* fix: change execution order for light node upgrade * refactor: grab new configuration from post config request * fix: only print successful light node upgrade when it really happens * fix: log full desktop side swap error (#596) * refactor: try to make the auth error in swap nicer * refactor: make error instruction consistent * fix: avoid overwriting daiToSwap when it is set manually
11 lines
247 B
TypeScript
11 lines
247 B
TypeScript
export class AuthError extends Error {
|
|
constructor() {
|
|
super('Bad API key')
|
|
this.name = 'AuthError'
|
|
}
|
|
}
|
|
|
|
export function isAuthError(error: unknown): error is AuthError {
|
|
return error instanceof Error && error.name === 'AuthError'
|
|
}
|