JohanObrink / rethink-migrate

A migration tool for rethink db
MIT License
47 stars 24 forks source link

callstack when migration fails #12

Open amir-rahnama opened 8 years ago

amir-rahnama commented 8 years ago

I think it's essential to be able to check where migration error happens in the script. Right now, that's how it is displayed:

[rethink-migrate] Connecting to database [rethink-migrate] Connected [rethink-migrate] Migration failed [SyntaxError: Unexpected token }]

Maybe the call stack should be in the output with the line numbers?

JohanObrink commented 8 years ago

Are you running the latest version? I get full stack traces of all errors since https://github.com/JohanObrink/rethink-migrate/commit/b496b7f365d48e548fb4fa5f1c5c1d1aeaafee0d