Skip to content

Commit 50bd431

Browse files
Include uncought exceptions stack trace to the output logs (#895)
1 parent 9ba99ac commit 50bd431

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "azure-pipelines-task-lib",
3-
"version": "3.3.2",
3+
"version": "3.4.0",
44
"description": "Azure Pipelines Task SDK",
55
"main": "./task.js",
66
"typings": "./task.d.ts",

node/task.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export function setResult(result: TaskResult, message: string, done?: boolean):
105105
//
106106
process.on('uncaughtException', (err: Error) => {
107107
setResult(TaskResult.Failed, loc('LIB_UnhandledEx', err.message));
108+
error(String(err.stack));
108109
});
109110

110111
//-----------------------------------------------------

0 commit comments

Comments
 (0)