Skip to content

Commit

Permalink
fix(job-command): fixed error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
YuryShkoda committed Sep 11, 2023
1 parent 4449845 commit 150b0db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/job/internal/execute/viya.ts
Expand Up @@ -143,7 +143,7 @@ export async function executeJobViya(

// get additional information about error if it is present
result =
typeof err === 'object' && Object.keys(err).length
typeof err === 'object' && err.job && err.job?.state
? JSON.stringify({ state: err.job?.state })
: `${err}`

Expand Down

0 comments on commit 150b0db

Please sign in to comment.