aboutsummaryrefslogtreecommitdiff
path: root/imgs.go
diff options
context:
space:
mode:
Diffstat (limited to 'imgs.go')
-rw-r--r--imgs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/imgs.go b/imgs.go
index e0495a0..78705ca 100644
--- a/imgs.go
+++ b/imgs.go
@@ -2,6 +2,7 @@ package main
import (
"fmt"
+ "log"
"os"
"mime"
"net/http"
@@ -89,8 +90,7 @@ func imgs(w http.ResponseWriter, r *http.Request) {
}
return
} else if err != nil {
- sendError(w, r, err.Error(), http.StatusInternalServerError)
- return
+ log.Println(err)
}
sendFlash(w, r, "redirect", "/imgs")
http.Redirect(w, r, "/login", http.StatusSeeOther)