mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2025-12-24 02:39:18 -05:00
This PR adds an error message when the database has no admin user and Jellyseerr has already been set up (i.e. settings.json is filled in), instead of having a generic error message.
12 lines
374 B
TypeScript
12 lines
374 B
TypeScript
export enum ApiErrorCode {
|
|
InvalidUrl = 'INVALID_URL',
|
|
InvalidCredentials = 'INVALID_CREDENTIALS',
|
|
InvalidAuthToken = 'INVALID_AUTH_TOKEN',
|
|
InvalidEmail = 'INVALID_EMAIL',
|
|
NotAdmin = 'NOT_ADMIN',
|
|
NoAdminUser = 'NO_ADMIN_USER',
|
|
SyncErrorGroupedFolders = 'SYNC_ERROR_GROUPED_FOLDERS',
|
|
SyncErrorNoLibraries = 'SYNC_ERROR_NO_LIBRARIES',
|
|
Unknown = 'UNKNOWN',
|
|
}
|