summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaximilian Gass <mxey@ghosthacking.net>2011-05-23 08:06:05 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-05-23 09:53:57 +0200
commitdb66ad9caafbb4c5dfd07444ec417f7ed73560af (patch)
tree0c37b5ffd3b07298d8ae1991ab0a02df5fe359f4
parent19ff7fc150470d923b7f95fc09316e594f4c3bdc (diff)
Mention command name in missing command error message
Conflicts: bin/ssh-forcecommand
-rwxr-xr-xbin/ssh-forcecommand2
-rw-r--r--t/60-regression.t2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/ssh-forcecommand b/bin/ssh-forcecommand
index c216658..5fb5068 100755
--- a/bin/ssh-forcecommand
+++ b/bin/ssh-forcecommand
@@ -20,7 +20,7 @@ while ( my $line = <$conf> ) {
close($conf) or die("Cannot close $conffile: $!\n");
if ( not $command{$origcmd} ) {
- die("Unknown command\n");
+ die("Unknown command: $origcmd\n");
}
exec( $command{$origcmd} );
diff --git a/t/60-regression.t b/t/60-regression.t
index 828c127..e3b3476 100644
--- a/t/60-regression.t
+++ b/t/60-regression.t
@@ -35,7 +35,7 @@ test_fc(
test_fc(
in => 'invalid',
ret => 1,
- err => 'Unknown command',
+ err => 'Unknown command: invalid',
);
test_fc(