-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(marxan-run): in case of any error, handle it and use failed-reason #516
Conversation
This pull request is being automatically deployed with Vercel (learn more). marxan – ./app🔍 Inspect: https://vercel.com/vizzuality1/marxan/5B5qCQh871fCb7uJiE8w9NjZRBt9 marxan-storybook – ./app🔍 Inspect: https://vercel.com/vizzuality1/marxan-storybook/3QP6rEE7m6ssrGFd45FcdFToxrUm |
92c5ad0
to
de6932e
Compare
de6932e
to
54b4618
Compare
error: Error & { | ||
errno: number; | ||
code: number; | ||
path: string; | ||
syscall: string; | ||
spawnargs: string[]; | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error: Error & { | |
errno: number; | |
code: number; | |
path: string; | |
syscall: string; | |
spawnargs: string[]; | |
}, | |
error: Error | { | |
errno: number; | |
code: number; | |
path: string; | |
syscall: string; | |
spawnargs: string[]; | |
}, |
otherwise the 'code' in error
doesn't make sense
54b4618
to
e6562fd
Compare
Reason for using
string
withinnew Error(...)
is thatbullmq
assumes such format so that the job data containsfailedReason
property derived from this very type (i.e. if processor finished throwing an error)source: taskforcesh/bullmq#537 (comment)