Prefix path in error message with /

Previously the root path was displayed as the empty string, which is confusing.
This commit is contained in:
Johannes Maas 2020-07-19 20:07:38 +02:00
parent 7d6d3bc672
commit 2746639b35

View File

@ -133,7 +133,7 @@ createBuildError path decodeError =
{ title = "Metadata Decode Error"
, message =
[ Terminal.text "I ran into a problem when parsing the metadata for the page with this path: "
, Terminal.text (String.join "/" path)
, Terminal.text ("/" ++ String.join "/" path)
, Terminal.text "\n\n"
, Terminal.text decodeError
]