Mercurial > cgi-bin > hgweb.cgi > PassMan
diff src/main/kotlin/name/blackcap/passman/ReadSubcommand.kt @ 9:72619175004e
Fix issues found in testing.
author | David Barts <n5jrn@me.com> |
---|---|
date | Sat, 01 Oct 2022 09:57:23 -0700 |
parents | 698c4a3d758d |
children | c69665ff37d0 |
line wrap: on
line diff
--- a/src/main/kotlin/name/blackcap/passman/ReadSubcommand.kt Fri Sep 23 20:59:52 2022 -0700 +++ b/src/main/kotlin/name/blackcap/passman/ReadSubcommand.kt Sat Oct 01 09:57:23 2022 -0700 @@ -30,10 +30,10 @@ exitProcess(0) } if (commandLine.args.isEmpty()) { - error("expecting site name") + die("expecting site name", 2) } if (commandLine.args.size > 1) { - error("unexpected trailing arguments") + die("unexpected trailing arguments", 2) } val nameIn = commandLine.args[0]; val db = Database.open()