fix: error message build issues

This commit is contained in:
Chris Anderson 2025-07-24 13:48:42 -05:00
parent 8f32370014
commit d89c9699a3
2 changed files with 4 additions and 6 deletions

View file

@ -46,8 +46,7 @@ export const releaseLock = async (key: string) => {
}
export class LockError extends Error {
constructor(message: string) {
super(message)
this.name = 'LockError'
constructor() {
super('LockError')
}
}

View file

@ -21,9 +21,8 @@ export interface EncodedJob {
export class JobError extends Error {}
export class RetryError extends JobError {
constructor(message: string) {
super(message)
this.name = 'RetryError'
constructor() {
super('RetryError')
}
}