Permalink
Browse files

Merge pull request #29 from josevalim/patch-1

Pass file and line when eval'ing code for better stacktraces
  • Loading branch information...
2 parents 149b11d + 298b3d3 commit 232489e262159b4768d4465214fafc3d93cdd15e @yrashk committed Oct 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/user_config.ex
View
@@ -3,7 +3,7 @@ defmodule Expm.UserConfig do
def read do
if File.exists?(filename) do
{:ok, b} = File.read(filename)
- {v, _} = Code.eval(b)
+ {v, _} = Code.eval(b, [], file: filename, line: 1)
v
else
[]

0 comments on commit 232489e

Please sign in to comment.