Skip to content

Commit a9e159e

Browse files
authored
changed 404 error text (#114)
1 parent 94e28fd commit a9e159e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/server.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,9 @@ function serve_file(fw, req::HTTP.Request; inject_browser_reload_script::Bool =
132132
end
133133
# If still not found a body, return a generic error message
134134
if isempty(fs_path)
135-
return HTTP.Response(404, "404: file not found. The most likely reason " *
136-
"is that the URL you entered has a mistake in it or that " *
137-
"the requested page has been deleted or renamed. Check " *
138-
"also that the server is still running.")
135+
return HTTP.Response(404, "404: file not found. Perhaps you made a typo " *
136+
"in the URL, or the requested file has been " *
137+
"deleted or renamed.")
139138
end
140139
end
141140

0 commit comments

Comments
 (0)