mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
rclone: implement exit codes - #1136
This commit is contained in:
@@ -142,7 +142,7 @@ type indexData struct {
|
||||
|
||||
// error returns an http.StatusInternalServerError and logs the error
|
||||
func internalError(what interface{}, w http.ResponseWriter, text string, err error) {
|
||||
fs.Stats.Error()
|
||||
fs.Stats.Error(err)
|
||||
fs.Errorf(what, "%s: %v", text, err)
|
||||
http.Error(w, text+".", http.StatusInternalServerError)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user