Skip to content

Commit 6b2e8a9

Browse files
committed
Improve invalid blog output
1 parent aacaf04 commit 6b2e8a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,7 @@ func AdminHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
183183
})
184184
}
185185
} else {
186-
fmt.Println("Failure!")
187-
http.Redirect(w, r, "/", http.StatusFound)
186+
fmt.Fprintf(w, "Failure creating blog! Please choose a different name!")
188187
}
189188
} else {
190189
fmt.Fprintf(w, "You must be authenticated!") // TODO make this look better

0 commit comments

Comments
 (0)