Diff

Differences From Artifact [60941617be]:

To Artifact [7cb1f824eb]:


   515    515   
   516    516   db eval {
   517    517   	CREATE TABLE IF NOT EXISTS users(name, publicKey BLOB);
   518    518   	CREATE TABLE IF NOT EXISTS passwords(name, encryptedPass BLOB, encryptedKey BLOB, publicKey BLOB);
   519    519   }
   520    520   
   521    521   if {$action in $validCommands} {
   522         -	$action {*}$argv
          522  +	if {[catch {
          523  +		$action {*}$argv
          524  +	} error]} {
          525  +		puts stderr "Error: $error"
          526  +
          527  +		exit 1
          528  +	}
   523    529   } else {
   524    530   	puts stderr "Invalid action"
   525    531   
   526    532   	exit 1
   527    533   }
   528    534   
   529    535   exit 0
   530    536