From b3a5fee318271031b0e78be28f683cca053cb86e Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Sat, 20 Apr 2013 23:44:18 +0200 Subject: [PATCH] main: use cleaner error output --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 948ea9c..a01d6ef 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -270,7 +270,7 @@ int main (int argc, char**argv) if (optind != argc) { for (int i = 0; i < argc; ++i) out (argv[i]); - err (argv[0] << ": unmatched non-option parameters"); + progerr ("unmatched non-option parameters"); do_help = true; } @@ -294,7 +294,7 @@ int main (int argc, char**argv) //keyring initialization if (!KR.open() ) { - err ("could not open keyring!"); + progerr ("could not open keyring!"); return 1; } @@ -420,8 +420,8 @@ int main (int argc, char**argv) exit: if (!KR.close() ) { - err ("could not close keyring, " - "something weird is going to happen."); + progerr ("could not close keyring, " + "something weird is going to happen."); } return exitval;