wrap error.
This commit is contained in:
parent
356e129647
commit
998436c015
|
@ -157,7 +157,7 @@ function generateSchema(
|
||||||
case FieldType.AUTO:
|
case FieldType.AUTO:
|
||||||
case FieldType.JSON:
|
case FieldType.JSON:
|
||||||
case FieldType.INTERNAL:
|
case FieldType.INTERNAL:
|
||||||
throw `${column.type} is not a valid SQL type`
|
throw new Error(`${column.type} is not a valid SQL type`)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
utils.unreachable(columnType)
|
utils.unreachable(columnType)
|
||||||
|
|
Loading…
Reference in New Issue