Commit 89c20f9a authored by Alexander Danilov's avatar Alexander Danilov Committed by Matt Holt

markdown: Fix 500 error (#2266)

parent d3b731e9
...@@ -142,7 +142,7 @@ func (md Markdown) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error ...@@ -142,7 +142,7 @@ func (md Markdown) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error
case err == nil: // nop case err == nil: // nop
case os.IsPermission(err): case os.IsPermission(err):
return http.StatusForbidden, err return http.StatusForbidden, err
case os.IsExist(err): case os.IsNotExist(err):
return http.StatusNotFound, nil return http.StatusNotFound, nil
default: // did we run out of FD? default: // did we run out of FD?
return http.StatusInternalServerError, err return http.StatusInternalServerError, err
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment