Sprite gen. work

This commit is contained in:
2025-01-28 06:09:29 +01:00
parent 5680b324b4
commit d17408acd9
2 changed files with 28 additions and 367 deletions

View File

@ -46,7 +46,10 @@ export abstract class BaseEntity {
throw error
}
} catch (error) {
this.logger.error(`Failed to ${actionDescription}: ${error instanceof Error ? error.message : String(error)}`)
const errorMessage = error instanceof Error ? error.message :
error && typeof error === 'object' && 'toString' in error ? error.toString() :
String(error)
this.logger.error(`Failed to ${actionDescription}: ${errorMessage}`)
throw error
}
}