Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-lomholdt committed Oct 17, 2022
1 parent c413933 commit 087b0cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ async function run() {
);
console.log(`Replaced tokens in files: ${result}`);
} catch (error) {
core.setFailed(error.message);
if (error instanceof Error) {
core.setFailed(error.message);
} else {
core.setFailed(String(error));
}
}
}

Expand Down

0 comments on commit 087b0cd

Please sign in to comment.