mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
Logging failed job reason
This commit is contained in:
parent
819ca1b80d
commit
540f3fe390
@ -154,6 +154,7 @@ export abstract class Job<T extends Record<string, any> = Record<string, any>> i
|
|||||||
this.run();
|
this.run();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Logger.error(LOG_TAG, e);
|
Logger.error(LOG_TAG, e);
|
||||||
|
this.Progress.log('Failed with: ' + (typeof e.toString === 'function') ? e.toString() : JSON.stringify(e));
|
||||||
this.Progress.State = JobProgressStates.failed;
|
this.Progress.State = JobProgressStates.failed;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user