You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2026-05-16 09:21:12 +02:00
improving logging and fixing file reader error handling bug
This commit is contained in:
+10
-10
@@ -1,22 +1,22 @@
|
||||
export enum ErrorCodes{
|
||||
NOT_AUTHENTICATED,
|
||||
ALREADY_AUTHENTICATED,
|
||||
NOT_AUTHORISED,
|
||||
CREDENTIAL_NOT_FOUND,
|
||||
NOT_AUTHENTICATED = 0,
|
||||
ALREADY_AUTHENTICATED = 1,
|
||||
NOT_AUTHORISED = 2,
|
||||
CREDENTIAL_NOT_FOUND = 3,
|
||||
|
||||
|
||||
USER_CREATION_ERROR,
|
||||
USER_CREATION_ERROR = 4,
|
||||
|
||||
|
||||
GENERAL_ERROR,
|
||||
THUMBNAIL_GENERATION_ERROR,
|
||||
SERVER_ERROR,
|
||||
GENERAL_ERROR = 5,
|
||||
THUMBNAIL_GENERATION_ERROR = 6,
|
||||
SERVER_ERROR = 7,
|
||||
|
||||
USER_MANAGEMENT_DISABLED
|
||||
USER_MANAGEMENT_DISABLED = 8
|
||||
|
||||
}
|
||||
|
||||
export class Error {
|
||||
constructor(public code:ErrorCodes, public message?:String) {
|
||||
constructor(public code: ErrorCodes, public message?: string) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user