From 3b767e498bea6a63d7c270e5d8fa48c87544203a Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Thu, 4 Jul 2019 22:33:35 +0200 Subject: [PATCH] Add string cast when outputting exceptions in sql.php Change-Id: Ibf21869a2525a8c55f53ec79727c818888344e99 --- maintenance/sql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1