From: Umherirrender Date: Thu, 4 Jul 2019 20:33:35 +0000 (+0200) Subject: Add string cast when outputting exceptions in sql.php X-Git-Tag: 1.34.0-rc.0~449 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=3b767e498bea6a63d7c270e5d8fa48c87544203a;p=lhc%2Fweb%2Fwiklou.git Add string cast when outputting exceptions in sql.php Change-Id: Ibf21869a2525a8c55f53ec79727c818888344e99 --- 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;