Skip to content
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

Issue source for uncaught exceptions #1011

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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": "4.8.0",
"version": "4.8.1",
"description": "Azure Pipelines Task SDK",
"main": "./task.js",
"typings": "./task.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion node/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,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));
error(String(err.stack), im.IssueSource.TaskInternal);
});

//
Expand Down
2 changes: 1 addition & 1 deletion powershell/VstsTaskSdk/OutFunctions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function Out-Default {
Write-Verbose -Message "$($_.ScriptStackTrace)" 4>&1 | Out-Default
Write-Verbose -Message 'Exception:' 4>&1 | Out-Default
Write-Verbose -Message $_.Exception.ToString() 4>&1 | Out-Default
Write-TaskError -Message $_.Exception.Message
Write-TaskError -Message $_.Exception.Message -IssueSource $IssueSources.TaskInternal
} elseif ($_ -is [System.Management.Automation.WarningRecord]) {
Write-TaskWarning -Message (Remove-TrailingNewLine (Out-String -InputObject $_ -Width 2147483647))
} elseif ($_ -is [System.Management.Automation.VerboseRecord] -and !$global:__vstsNoOverrideVerbose) {
Expand Down
2 changes: 1 addition & 1 deletion powershell/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion powershell/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.18.0",
"version": "0.18.1",
"private": true,
"scripts": {
"build": "node make.js build",
Expand Down