elm / error-message-catalog

A catalog of broken Elm programs / data to improve error messages
BSD 3-Clause "New" or "Revised" License
173 stars 17 forks source link

Bad Port message links to empty docs page #290

Closed bburdette closed 5 years ago

bburdette commented 5 years ago

The web page linked in this error is empty except for the word "Ports".

Detected errors in 1 module.                                         
[00] -- BAD PORT ------------------------------------------------------- src/Main.elm
[00] 
[00] You are declaring port `time` in a normal module.
[00] 
[00] 57| port time : Float -> Cmd msg
[00]          ^^^^
[00] It needs to be in a `port` module.
[00] 
[00] Hint: Ports are not a traditional FFI for calling JS functions directly. They
[00] need a different mindset! Read <https://elm-lang.org/0.19.0/ports> to learn how
[00] to use ports effectively.
evancz commented 5 years ago

I set up a new system for these links. Instead of going direct to the website, there is a redirect for each link. Most go to markdown files hosted on GitHub, but by using redirects, the links can be updated later and point to a more diverse set of documents.

So I added a redirect on this one such that it works now! Thanks for the report!