Index: hunter2 ================================================================== --- hunter2 +++ hunter2 @@ -517,11 +517,17 @@ CREATE TABLE IF NOT EXISTS users(name, publicKey BLOB); CREATE TABLE IF NOT EXISTS passwords(name, encryptedPass BLOB, encryptedKey BLOB, publicKey BLOB); } if {$action in $validCommands} { - $action {*}$argv + if {[catch { + $action {*}$argv + } error]} { + puts stderr "Error: $error" + + exit 1 + } } else { puts stderr "Invalid action" exit 1 }