From 1680f708a3c8d34e897287bca517a9b31ff20fdd Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 3 May 2004 03:20:58 +0000 Subject: [PATCH] Outputting MySQL's error message in dbsource() --- install-utils.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install-utils.inc b/install-utils.inc index 608c6abcd5..73f4e38171 100644 --- a/install-utils.inc +++ b/install-utils.inc @@ -113,7 +113,8 @@ function dbsource( $fname, $database = false ) { $res = mysql_query( $cmd ); if ( false === $res ) { - print "Query \"{$cmd}\" failed.\n"; + $err = mysql_error(); + print "Query \"{$cmd}\" failed with error code \"$err\".\n"; exit(); } -- 2.20.1