Skip to content

Commit

Permalink
Add error message if unpacking of artifact zip fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
matlorr committed Feb 25, 2025
1 parent 4232889 commit 805549a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion relay/import.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,16 @@ async function runProcess(id, cmd, args, cwd) {
});

ls.stderr.on('data', (data) => {
progress[id].output += data.toString()
try {
if (args[0].includes("unpack.sh")){
throw new Error(".zip file of artifact could not be fetched. Make sure it exists and is not expired. \n")
} else {
progress[id].output += data.toString()
}
} catch(e){
progress[id].output += `Error: ${e.toString()}\n${e.stack}`
}

});

ls.on('close', (code) => {
Expand Down

0 comments on commit 805549a

Please sign in to comment.