Skip to content

Commit

Permalink
fix: better script args error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Apr 23, 2019
1 parent d90b6bc commit 942d439
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ if (args.length === 1 && utils.isUrlOrPort(args[0])) {
url = utils.normalizeUrl(args[1])
}
} else {
la(args.length === 3, 'expect: <start script name> <url> <test script name>')
la(
args.length === 3,
'expected <NPM script name that starts server> <url or port> <NPM script name that runs tests>\n',
'example: start-test start 8080 test\n',
'see https://github.com/bahmutov/start-server-and-test#use\n'
)
start = args[0]
url = utils.normalizeUrl(args[1])
test = args[2]
Expand Down

0 comments on commit 942d439

Please sign in to comment.