From db66ad9caafbb4c5dfd07444ec417f7ed73560af Mon Sep 17 00:00:00 2001 From: Maximilian Gass Date: Mon, 23 May 2011 08:06:05 +0200 Subject: Mention command name in missing command error message Conflicts: bin/ssh-forcecommand --- bin/ssh-forcecommand | 2 +- t/60-regression.t | 2 +- 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( -- cgit v1.2.3