[Commits] Rev 176: Better error message in file:///data0/psergey/dbt3-auto/mariadb-tools/

Sergey Petrunya psergey at askmonty.org
Thu Nov 29 11:44:09 EET 2012


At file:///data0/psergey/dbt3-auto/mariadb-tools/

------------------------------------------------------------
revno: 176
revision-id: psergey at askmonty.org-20121129094409-5qm1squnx9wils1t
parent: knielsen at knielsen-hq.org-20121123134911-1fqffhuxr5r1tdhj
committer: Sergey Petrunya <psergey at askmonty.org>
branch nick: mariadb-tools
timestamp: Thu 2012-11-29 13:44:09 +0400
message:
  Better error message
=== modified file 'dbt3_benchmark/launcher.pl'
--- a/dbt3_benchmark/launcher.pl	2011-12-14 12:07:45 +0000
+++ b/dbt3_benchmark/launcher.pl	2012-11-29 09:44:09 +0000
@@ -1274,7 +1274,7 @@
 		my @run_stmts;
 		if($l_RUN){
 			$/ = ';';
-			open (FH, "< $l_QUERIES_HOME/$l_QUERY") or SafelyDie("Error while opening file: $!", __LINE__);
+			open (FH, "< $l_QUERIES_HOME/$l_QUERY") or SafelyDie("Error while opening file $l_QUERIES_HOME/$l_QUERY: $!", __LINE__);
 			while (<FH>) {
 				my $tmp = $_;
 				$tmp =~ s/^\s+//;
@@ -1710,4 +1710,4 @@
 
 
 
-exit 1;
\ No newline at end of file
+exit 1;



More information about the commits mailing list