X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=maintenance%2Fsql.php;h=e7988feccf6bebc628f5d8bc9d887664bbb6ca89;hb=a235328db0cce3133bbdf91e2330df05d535e9e6;hp=612c09264ce32b78af13792056d692f3a602c548;hpb=b48b6cbe0e7860c52fd6913853a7d054c7721017;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/sql.php b/maintenance/sql.php index 612c09264c..e7988feccf 100644 --- a/maintenance/sql.php +++ b/maintenance/sql.php @@ -175,9 +175,9 @@ class MwSql extends Maintenance { return $this->sqlPrintResult( $res, $db ); } catch ( DBQueryError $e ) { if ( $dieOnError ) { - $this->fatalError( $e ); + $this->fatalError( (string)$e ); } else { - $this->error( $e ); + $this->error( (string)$e ); } } return null;