error-message-catalog icon indicating copy to clipboard operation
error-message-catalog copied to clipboard

Error message for UNKNOWN EXPORT

Open mokshasoft opened this issue 5 years ago • 1 comments

I propose to add line number to this error message. I guess I didn't read the message that good, so it confused me for some time not to find exactly where the problem is. And sometimes some files have longer headers and then it is also good to just be able to jump to the correct line.

-- UNKNOWN EXPORT ---------- File.elm
  
You are trying to expose a type named `X` but I cannot find its definition.

Maybe you want Y instead?

mokshasoft avatar Nov 05 '20 16:11 mokshasoft

I forgot to add the file that triggered the error message.

Code:

module Lines exposing (test, unknown)

test : Int
test =
    1

Error message:

-- UNKNOWN EXPORT ---------------------------------------------------- Lines.elm

You are trying to expose a value named `unknown` but I cannot find its
definition.

Maybe you want test instead?

mokshasoft avatar Nov 05 '20 16:11 mokshasoft