node-triton
node-triton copied to clipboard
`TRITON_PROFILE=bogus triton ...` should hardfail
Currently if your TRITON_PROFILE envvar is set to a profile that doesn't exist... then triton ... doesn't say anything and confusion can ensue (see discussion on #smartos IRC here: http://echelog.com/logs/browse/smartos/1466632800).
The gist in the original report is gone. What I see with current master is:
$ export TRITON_PROFILE=doesnotexist
$ ./bin/triton ls
triton: error (Config): no such profile: doesnotexist
Which sounds like a reasonable warning.