mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Raise a "you should upgrade your storage" note for a missing database
Summary: We raise an improved exception for missing tables/columns, but not databases. Test Plan: Hit a "no such database error", got a better error message pointing me at storage upgrades. Reviewers: btrahan, jungejason Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D2429
This commit is contained in:
parent
ed34402313
commit
907f1a3dee
1 changed files with 1 additions and 0 deletions
|
@ -238,6 +238,7 @@ abstract class AphrontMySQLDatabaseConnectionBase
|
|||
case 1143: // Access denied to column
|
||||
throw new AphrontQueryAccessDeniedException($exmsg);
|
||||
case 1146: // No such table
|
||||
case 1049: // No such database
|
||||
case 1054: // Unknown column "..." in field list
|
||||
throw new AphrontQuerySchemaException($exmsg);
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue