0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2024-12-30 22:34:01 -05:00

Log errors

This commit is contained in:
Steve Larson 2024-12-18 10:21:45 -06:00
parent 443e624cf0
commit f68eba14e7

View file

@ -174,6 +174,7 @@ class JobQueueManager {
}
async handleJobError(job, jobMetadata, error) {
logging.error('Error in job queue:', error);
let errorMessage;
if (error instanceof Error) {
errorMessage = error.message;