Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message for UNKNOWN EXPORT #341

Open
mokshasoft opened this issue Nov 5, 2020 · 1 comment
Open

Error message for UNKNOWN EXPORT #341

mokshasoft opened this issue Nov 5, 2020 · 1 comment

Comments

@mokshasoft
Copy link

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant