Found while adding the create-database-table MCP tool (#8633).
createTable is not wrapped in try/catch, unlike the create-database handler above it, so a driver throw surfaces as an unhandled 500.
Steps to reproduce
POST .../tables with { "name": "t", "columns": [{ "name": "c", "type": "varchar" }] } (any type outside bigint, bigserial, boolean, date, timestamptz, real, double precision, text).
- The driver throws
Unsupported column type; the response is a raw 500.
Expected
A 400 with a clear message listing the supported column types.
Reference
forge/ee/routes/tables/index.js:304 (no try/catch, cf. :108-120), forge/ee/lib/tables/drivers/postgres-supavisor.js:362-365, postgres-localfs.js:289-292.
Found while adding the create-database-table MCP tool (#8633).
createTableis not wrapped in try/catch, unlike the create-database handler above it, so a driver throw surfaces as an unhandled 500.Steps to reproduce
POST .../tableswith{ "name": "t", "columns": [{ "name": "c", "type": "varchar" }] }(any type outside bigint, bigserial, boolean, date, timestamptz, real, double precision, text).Unsupported column type; the response is a raw 500.Expected
A 400 with a clear message listing the supported column types.
Reference
forge/ee/routes/tables/index.js:304(no try/catch, cf.:108-120),forge/ee/lib/tables/drivers/postgres-supavisor.js:362-365,postgres-localfs.js:289-292.