Skip to content

Commit

Permalink
tracy panel: print error code & error sql state
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Mar 12, 2024
1 parent 94b3a6e commit ddf0578
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Bridges/NetteTracy/BluescreenQueryPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ public static function renderBluescreenPanel(?\Throwable $exception): ?array

return [
'tab' => 'SQL',
'panel' => '<pre class="sql">' . SqlHighlighter::highlight($query) . "</pre>",
'panel' => '<pre class="sql">' . SqlHighlighter::highlight($query) . '</pre>' .
"<p>Error code: {$exception->getErrorCode()}<br>SQL STATE: {$exception->getErrorSqlState()}</p>",
];
}
}

0 comments on commit ddf0578

Please sign in to comment.