summaryrefslogtreecommitdiff
path: root/lib/App
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-05-18 12:02:29 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-05-18 12:02:29 +0200
commit14bc3c95055bd2db5434727aae1d27622c6ea289 (patch)
tree16ca7a2c989befdfaca61cdabeb408bee14e0c2e /lib/App
parentc7f6d87610c70ebec4ac175684e29e8051d7e126 (diff)
App/raps2: 'or die' is not needed, write_file has internal error handling
Diffstat (limited to 'lib/App')
-rw-r--r--lib/App/Raps2.pm9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/App/Raps2.pm b/lib/App/Raps2.pm
index ce2dcd6..c416592 100644
--- a/lib/App/Raps2.pm
+++ b/lib/App/Raps2.pm
@@ -161,8 +161,7 @@ sub create_config {
"cost ${cost}\n",
"salt ${salt}\n",
"hash ${hash}\n",
- )
- or die("Could not write password file: $!\n");
+ );
}
=item $raps2->load_config()
@@ -245,8 +244,7 @@ sub cmd_add {
"salt ${salt}\n",
"hash ${pass_hash}\n",
"extra ${extra_hash}\n",
- )
- or die("Could not write $pwfile: $!\n");
+ );
}
=item $raps2->cmd_dump(I<$account>)
@@ -319,8 +317,7 @@ sub cmd_edit {
"salt ${salt}\n",
"hash ${pass_hash}\n",
"extra ${extra}\n",
- )
- or die("Could not write $pwfile: $!\n");
+ );
}
=item $raps2->cmd_get(I<$name>)