mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-07-26 01:18:20 +00:00
add comment to ErrorToHTTPCode
This commit is contained in:
parent
8256959138
commit
730d6cd729
1 changed files with 1 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ import (
|
|||
"os"
|
||||
)
|
||||
|
||||
// ErrorToHTTPCode converts errors to HTTP Status Code.
|
||||
func ErrorToHTTPCode(err error, gone bool) int {
|
||||
switch {
|
||||
case os.IsPermission(err):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue