Skip to content

Commit

Permalink
syncqt.pl: say "ERROR" when it's an error
Browse files Browse the repository at this point in the history
Change-Id: I0f2ce894387048f78465ffff141cdae9ea760175
Reviewed-by: Oswald Buddenhagen <[email protected]>
  • Loading branch information
thiagomacieira committed Dec 8, 2015
1 parent bdd4ddd commit 3304ea8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/syncqt.pl
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ sub isQpaHeader
$var = "version";
$val = shift @ARGV;
} elsif($arg =~/^-/) {
print STDERR "Unknown option: $arg\n\n" if (!$var);
print STDERR "ERROR: Unknown option: $arg\n\n" if (!$var);
showUsage();
} else {
$basedir = locateSyncProfile($arg);
Expand All @@ -777,7 +777,7 @@ sub isQpaHeader

#do something
if(!$var || $var eq "show_help") {
print STDERR "Unknown option: $arg\n\n" if (!$var);
print STDERR "ERROR: Unknown option: $arg\n\n" if (!$var);
showUsage();
} elsif ($var eq "copy") {
if($val eq "yes") {
Expand Down

0 comments on commit 3304ea8

Please sign in to comment.