error message on "@foo = bar"

514 views
Skip to first unread message

Sitaram Chamarty

unread,
Aug 9, 2015, 5:23:38 AM8/9/15
to elixir-l...@googlegroups.com
I am wondering if there could be a better message than this:

** (CompileError) abc.ex:2: cannot invoke remote function Module.get_attribute/3 inside match

when the error is basically an extra "=" in lines like this:

@foo = "bar"

thanks
sitaram

Aleksei Magusev

unread,
Aug 9, 2015, 6:36:31 AM8/9/15
to elixir-lang-talk
It's improved in master branch:

** (ArgumentError) abc.ex:2: invalid write attribute syntax, you probably meant to use: @foo expression

Sitaram Chamarty

unread,
Aug 9, 2015, 8:35:24 PM8/9/15
to elixir-l...@googlegroups.com
On 08/09/2015 04:06 PM, Aleksei Magusev wrote:
> It's improved in master branch:

Thanks; I did not realise that! Good enough for me :)

regards
sitaram
Reply all
Reply to author
Forward
0 new messages