Skip to content

Conversation

robturtle
Copy link

fixed #7.

By this way node will throw a meaningful error like this:

[[[[[ ~/git/meteor/mysql-test ]]]]]

=> Started proxy.
=> Started MySQL.
[MySQL] Performing initialization queries...
=> Errors prevented startup:

   While building the application:
   packages/mysqlServer/plugin/mysqlServer.js:171:1: ER_PARSE_ERROR: You have an error in your SQL syntax; check the
   manual that corresponds to your MySQL server version for the right syntax to use near 'REATE DATABASE chicks;
   USE chicks;

   CREATE TABLE `sexies` (
   `name` varchar(45)' at line 1 (compiling app.mysql.json)
   at Query.<anonymous> (packages/mysqlServer/plugin/mysqlServer.js:171:1)
   at runWithEnvironment (/tools/utils/fiber-helpers.js:112:21)

I don't know much about the meteor internal so I might miss something, but at least the error message can be shown normally now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bad behavior when the initialize sql file contains syntax errors

1 participant