Unexpected token in schema.json is reported as 'empty-database'
yeya opened this issue · comments
yeya commented
When schema.json
file contains invalid json, the upgrade process ignore the error because originalVersion === undefined
here and throw empty-database
error instead.
- Steps to reproduce:
Run DB Upgrade with schema.json contains invalid JSON, for example:{ "schema": "wrong", }
- Expected Result:
throwSyntaxError: Unexpected token } in JSON at position X
- Actual Result:
throwempty-database
Daniel Cohen Gindi commented
Please test with 0.4.5 ;-)
yeya commented
index.js:588 ReferenceError: `version is not defined`
…On Sun, Aug 16, 2020 at 9:37 AM Daniel Cohen Gindi ***@***.***> wrote:
Please test with 0.4.5 ;-)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQWFJQDIZFGDJQBYYCEDOLSA55AVANCNFSM4P4ZMHLQ>
.