Skip to content

Commit 5e224e0

Browse files
committed
Added Error-Handling
1 parent 45ff2a8 commit 5e224e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ let extensionId, clientId, clientSecret, refreshToken, inputFile, doPublish, tar
2727

2828
core.info("Starting upload");
2929
const uploadResource = await uploadExtension(store, token, inputFile);
30+
if (uploadResource["uploadState"] === "FAILURE") {
31+
core.setFailed("Upload failed: " + JSON.stringify(uploadResource["itemError"]));
32+
return;
33+
}
3034
core.info("Upload done, got the following result: " + uploadResource["uploadState"]);
3135

3236
if (doPublish) {

0 commit comments

Comments
 (0)