You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When schema.json file contains invalid json, the upgrade process ignore the error because originalVersion === undefinedhere and throw empty-database error instead.
Steps to reproduce:
Run DB Upgrade with schema.json contains invalid JSON, for example: { "schema": "wrong", }
Expected Result:
throw SyntaxError: Unexpected token } in JSON at position X
Actual Result:
throw empty-database
The text was updated successfully, but these errors were encountered:
When
schema.json
file contains invalid json, the upgrade process ignore the error becauseoriginalVersion === undefined
here and throwempty-database
error instead.Run DB Upgrade with schema.json contains invalid JSON, for example:
{ "schema": "wrong", }
throw
SyntaxError: Unexpected token } in JSON at position X
throw
empty-database
The text was updated successfully, but these errors were encountered: