Add string cast when outputting exceptions in sql.php
authorUmherirrender <umherirrender_de.wp@web.de>
Thu, 4 Jul 2019 20:33:35 +0000 (22:33 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Sun, 1 Sep 2019 18:43:18 +0000 (20:43 +0200)
Change-Id: Ibf21869a2525a8c55f53ec79727c818888344e99

maintenance/sql.php

index 612c092..e7988fe 100644 (file)
@@ -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;