scripts/annotate.pl |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 6f4d92a1a4e3076f203b700f1c3a43153bde4154
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Thu Aug 15 08:59:56 2013 +0200

    Make error output of annotate.pl w/o args more friendly

diff --git a/scripts/annotate.pl b/scripts/annotate.pl
index 1e6b8c1..70e0016 100755
--- a/scripts/annotate.pl
+++ b/scripts/annotate.pl
@@ -224,13 +224,13 @@ if (!defined $git_dir) {
 }
 
 if (!$list && !$stats && !$fetch) {
-
-    print "$note_text' '$note_hash\n";
     if (!defined $note_text || !defined $note_hash) {
        usage();
-       die "need some note text";
+       exit 1;
     }
 
+    print "$note_text' '$note_hash\n";
+
     validate_check_note($note_text);
     validate_git_hash($note_hash) ||
            die "Hash on master '$note_hash' doesn't look like a git hash\n";
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to