Sprite gen. work
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user