chiark / gitweb /
dgit: Improve error message for unknown suite, to suggest -d
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 3 Aug 2018 13:38:37 +0000 (14:38 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 3 Aug 2018 13:53:44 +0000 (14:53 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
dgit

index 791066d03d49a713669b22219cbb5899ee6fb58e..491e80f475c295b79557a2d5e04d2129f7cbe7f8 100644 (file)
@@ -4,6 +4,7 @@ dgit (6.5~) unstable; urgency=medium
   * test suite: editing a test script overrides DGIT_TESTS_PROGRESSIVE.
   * dgit: Rename --dgit-view-save to --save-dgit-view, leaving an alias.
   * dgit: Provide print-unapplied-treeish subcommand.
+  * dgit: Improve error message for unknown suite, to suggest -d.
 
  --
 
diff --git a/dgit b/dgit
index ddc2d6ca06a58afb63dbc154974ef18561275822..29d29d14c6656db6b39308a7b3bec89f85f6ca97 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -1078,7 +1078,7 @@ sub canonicalise_suite_ftpmasterapi {
        } qw(codename name);
        push @matched, $entry;
     }
-    fail "unknown suite $isuite" unless @matched;
+    fail "unknown suite $isuite, maybe -d would help" unless @matched;
     my $cn;
     eval {
        @matched==1 or die "multiple matches for suite $isuite\n";