Commit 3304ea8f authored by Thiago Macieira's avatar Thiago Macieira
Browse files

syncqt.pl: say "ERROR" when it's an error


Change-Id: I0f2ce894387048f78465ffff141cdae9ea760175
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
parent bdd4ddd8
Branches
Tags v5.12.0-alpha1
No related merge requests found
Showing with 2 additions and 2 deletions
...@@ -764,7 +764,7 @@ while ( @ARGV ) { ...@@ -764,7 +764,7 @@ while ( @ARGV ) {
$var = "version"; $var = "version";
$val = shift @ARGV; $val = shift @ARGV;
} elsif($arg =~/^-/) { } elsif($arg =~/^-/) {
print STDERR "Unknown option: $arg\n\n" if (!$var); print STDERR "ERROR: Unknown option: $arg\n\n" if (!$var);
showUsage(); showUsage();
} else { } else {
$basedir = locateSyncProfile($arg); $basedir = locateSyncProfile($arg);
...@@ -777,7 +777,7 @@ while ( @ARGV ) { ...@@ -777,7 +777,7 @@ while ( @ARGV ) {
#do something #do something
if(!$var || $var eq "show_help") { 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(); showUsage();
} elsif ($var eq "copy") { } elsif ($var eq "copy") {
if($val eq "yes") { if($val eq "yes") {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment