Skip to content

Commit

Permalink
Include uncought exceptions stack trace to the output logs (microsoft…
Browse files Browse the repository at this point in the history
  • Loading branch information
PavloAndriiesh authored Nov 22, 2022
1 parent b550904 commit 39c14da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "azure-pipelines-task-lib",
"version": "3.3.2",
"version": "3.4.0",
"description": "Azure Pipelines Task SDK",
"main": "./task.js",
"typings": "./task.d.ts",
Expand Down
1 change: 1 addition & 0 deletions node/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export function setResult(result: TaskResult, message: string, done?: boolean):
//
process.on('uncaughtException', (err: Error) => {
setResult(TaskResult.Failed, loc('LIB_UnhandledEx', err.message));
error(String(err.stack));
});

//-----------------------------------------------------
Expand Down

0 comments on commit 39c14da

Please sign in to comment.