Skip to content

Commit

Permalink
better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jdmcd committed Jan 24, 2019
1 parent 2b681ab commit c897bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Jobs/JobsCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public class JobsCommand: Command {
return queueService.persistenceLayer.completed(key: key, jobString: jobString)
}
.catchFlatMap { error in
console.error("Job error: \(error)", newLine: true)
console.error("[\(jobData.id)] Error: \(error)", newLine: true)

guard let jobString = job.stringValue(key: key, maxRetryCount: jobData.maxRetryCount, id: jobData.id) else {
return eventLoop.future(error: Abort(.internalServerError))
Expand Down

0 comments on commit c897bd3

Please sign in to comment.