Skip to content

Commit

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

Expand Down

0 comments on commit 9395e17

Please sign in to comment.