admin api: Add PGCode to generic message #98596
Labels
A-sql-observability
Related to observability of the SQL layer
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
The current error message returned on the SQL Activity pages is:
bundle.js:1793 Error Loading statements: RequestError: An internal server error has occurred. Please check your CockroachDB logs for more details
It would be ideal to return the PGCode to easily troubleshoot why the underlying query failed. It would avoid the pain of needing to get the db logs and attempt to correlate them with the ui console logs.
Jira issue: CRDB-25351
The text was updated successfully, but these errors were encountered: