mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-08 19:22:57 +00:00
add comment to ErrorToHTTPCode
This commit is contained in:
parent
8256959138
commit
730d6cd729
@ -5,6 +5,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// ErrorToHTTPCode converts errors to HTTP Status Code.
|
||||||
func ErrorToHTTPCode(err error, gone bool) int {
|
func ErrorToHTTPCode(err error, gone bool) int {
|
||||||
switch {
|
switch {
|
||||||
case os.IsPermission(err):
|
case os.IsPermission(err):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user