mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-18 21:27:51 +00:00
Improve parseCredentials error message
This commit is contained in:
parent
b0fe4f41c1
commit
798a3ded61
@ -31,7 +31,7 @@ exports.parseCredentials = (credentials) ->
|
||||
result = credentials.split(':')
|
||||
|
||||
if result.length isnt 2
|
||||
throw new Error('Invalid credentials')
|
||||
throw new Error('Invalid credentials. The expected input is username:password.')
|
||||
|
||||
return {
|
||||
username: _.first(result)
|
||||
|
Loading…
Reference in New Issue
Block a user