feat(up): handle storage initialization errors and present missing loader errors in a better way

This commit is contained in:
Joakim Carlstein 2023-12-08 09:59:00 +01:00
parent c1d55978d7
commit a8db22680e
4 changed files with 169 additions and 55 deletions

View file

@ -89,3 +89,9 @@ export class MigrationNotRunError extends EmigrateError {
super('ERR_MIGRATION_NOT_RUN', message, options);
}
}
export class StorageInitError extends EmigrateError {
constructor(message: string, options?: ErrorOptions) {
super('ERR_STORAGE_INIT', message, options);
}
}