From: Ian Jackson Date: Fri, 3 Aug 2018 13:38:37 +0000 (+0100) Subject: dgit: Improve error message for unknown suite, to suggest -d X-Git-Tag: archive/debian/6.5~22 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=9b6abc0738dde6c9fd71cf33ead7262fc00c57f9 dgit: Improve error message for unknown suite, to suggest -d Signed-off-by: Ian Jackson --- diff --git a/debian/changelog b/debian/changelog index 791066d0..491e80f4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 ddc2d6ca..29d29d14 100755 --- 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";