mirror of
https://github.com/ragestudio/comty.git
synced 2025-07-08 08:44:15 +00:00
Update log messages and add error output in file process queue
This commit is contained in:
parent
218df1c284
commit
79fbb74f32
@ -6,7 +6,7 @@ export default {
|
||||
id: "file-process",
|
||||
maxJobs: 2,
|
||||
process: async (job) => {
|
||||
console.log("[JOB][file-process] starting... >", job.data)
|
||||
console.log("[JOB][file-process] running... >", job.data)
|
||||
|
||||
try {
|
||||
const result = await Upload.fileHandle({
|
||||
@ -22,6 +22,8 @@ export default {
|
||||
.rm(job.workPath, { recursive: true, force: true })
|
||||
.catch(() => null)
|
||||
|
||||
console.error(error)
|
||||
|
||||
throw new Error(
|
||||
`Failed to process file > ${error.message ?? error}`,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user