1
0
Fork 0
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:
epriestley 2012-05-09 10:01:53 -07:00
parent ed34402313
commit 907f1a3dee

View file

@ -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: