Skip to content

Commit

Permalink
Edit error message
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyMorganz committed May 1, 2023
1 parent 4148a20 commit ea36dc1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ async function run(): Promise<void> {
const version = core.getInput('version').trim()

if (version === '') {
throw new Error(`The 'version' input must be specified for the action!`)
core.info(
'See https://github.com/JohnnyMorganz/stylua-action#usage for usage information'
)
throw new Error(`The 'version' input must be specified!`)
}

const releases = await stylua.getReleases(token)
Expand Down

0 comments on commit ea36dc1

Please sign in to comment.