mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-09-01 12:26:08 +08:00
fix: error message build issues
This commit is contained in:
parent
8f32370014
commit
d89c9699a3
2 changed files with 4 additions and 6 deletions
|
@ -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')
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue