diff options
Diffstat (limited to 'core/Db/BatchInsert.php')
-rw-r--r-- | core/Db/BatchInsert.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Db/BatchInsert.php b/core/Db/BatchInsert.php index b980a818d2..6cb5729607 100644 --- a/core/Db/BatchInsert.php +++ b/core/Db/BatchInsert.php @@ -244,6 +244,9 @@ class BatchInsert } catch (Exception $e) { $code = $e->getCode(); $message = $e->getMessage() . ($code ? "[$code]" : ''); + if (\Piwik_ShouldPrintBackTraceWithMessage()) { + $message .= "\n" . $e->getTraceAsString(); + } $exceptions[] = "\n Try #" . (count($exceptions) + 1) . ': ' . $queryStart . ": " . $message; } } |