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
Describe the bug
I tried to run lucky db:migrate command with an error in migration and instead of seeing an error message what went wrong I saw a message:
Hey, good find! Looking back at this code, looks like it never worked as intended. That variable is defined here. Turns out, macro StringLiteral doesn't have the % method, and you can't call the macro level variable defined outside from inside a macro...
Instead, the symbol_expected_message should become a macro method that takes 2 arguments, and just interpolate the string instead.
I've moved this issue in to Avram since the fix will need to be done in this repo.
Describe the bug
I tried to run
lucky db:migrate
command with an error in migration and instead of seeing an error message what went wrong I saw a message:Error: undefined macro variable 'symbol_expected_message'
To Reproduce
Steps to reproduce the behavior:
e.g.
instead of
lucky db:migrate
commandExpected behavior
Macro should be defined and print appropriate error message in console.
Versions (please complete the following information):
crystal --version
): 0.35.1The text was updated successfully, but these errors were encountered: