Skip to content

Commit 8f1b221

Browse files
check if variable execResult is defined (#15012) (#15015)
Co-authored-by: Zheng Hao Tang <[email protected]> Co-authored-by: mihairatoiu <[email protected]>
1 parent dab7489 commit 8f1b221

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Tasks/UniversalPackagesV0/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "universalpackages",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"description": "Download or publish universal packages.",
55
"main": "universalmain.js",
66
"scripts": {

Tasks/UniversalPackagesV0/task.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"category": "Package",
1010
"version": {
1111
"Major": 0,
12-
"Minor": 188,
12+
"Minor": 190,
1313
"Patch": 0
1414
},
1515
"runsOn": [

Tasks/UniversalPackagesV0/task.loc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"category": "Package",
1010
"version": {
1111
"Major": 0,
12-
"Minor": 188,
12+
"Minor": 190,
1313
"Patch": 0
1414
},
1515
"runsOn": [

Tasks/UniversalPackagesV0/universalpublish.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export async function run(artifactToolPath: string): Promise<void> {
149149
retries++;
150150
}
151151

152-
if (execResult.code === packageAlreadyExistsError) {
152+
if (execResult != null && execResult.code === packageAlreadyExistsError) {
153153
telemetry.logResult("Packaging", "UniversalPackagesCommand", execResult.code);
154154
throw new Error(tl.loc("Error_UnexpectedErrorArtifactTool",
155155
execResult.code,

0 commit comments

Comments
 (0)