summaryrefslogtreecommitdiff
path: root/api/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/handlers.go')
-rw-r--r--api/handlers.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/handlers.go b/api/handlers.go
index 0d23bdb..109eca3 100644
--- a/api/handlers.go
+++ b/api/handlers.go
@@ -3,6 +3,7 @@ package api
import (
"context"
"encoding/json"
+ "log"
"net/http"
"time"
@@ -84,6 +85,7 @@ func (h *Handler) Register(w http.ResponseWriter, r *http.Request) {
badRequest(w, "username already exists")
return
}
+ log.Printf("register error: %v", err)
serverError(w, "could not create account")
return
}