@@ -517,14 +517,20 @@ 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 } exit 0