diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-05-18 12:02:29 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-05-18 12:02:29 +0200 |
commit | 14bc3c95055bd2db5434727aae1d27622c6ea289 (patch) | |
tree | 16ca7a2c989befdfaca61cdabeb408bee14e0c2e | |
parent | c7f6d87610c70ebec4ac175684e29e8051d7e126 (diff) |
App/raps2: 'or die' is not needed, write_file has internal error handling
-rw-r--r-- | lib/App/Raps2.pm | 9 |
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>) |