Skip to content

Commit

Permalink
fix varname typo: original_filanme -> original_filename
Browse files Browse the repository at this point in the history
chocolateboy authored and Ary Borenszweig committed Oct 17, 2016

Verified

This commit was signed with the committer’s verified signature.
headius Charles Oliver Nutter
1 parent ae551e9 commit c020630
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/crystal/macros/methods.cr
Original file line number Diff line number Diff line change
@@ -133,7 +133,7 @@ module Crystal

node.args.first.accept self
filename = @last.to_macro_id
original_filanme = filename
original_filename = filename

# Support absolute paths
if filename.starts_with?("/")
@@ -177,7 +177,7 @@ module Crystal
if success
@last = MacroId.new(result)
else
node.raise "Error executing run: #{original_filanme} #{run_args.map(&.inspect).join " "}\n\nGot:\n\n#{result}\n"
node.raise "Error executing run: #{original_filename} #{run_args.map(&.inspect).join " "}\n\nGot:\n\n#{result}\n"
end
end
end

1 comment on commit c020630

@airinfection
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filanme?

Please sign in to comment.