add more log to mysql-blog-server

This commit is contained in:
syumai 2024-01-25 00:42:41 +09:00
parent a02892acec
commit f17923658e

View File

@ -108,6 +108,7 @@ SELECT id, title, body, created_at FROM articles
ORDER BY created_at DESC;
`)
if err != nil {
log.Println(err)
h.handleErr(w, http.StatusInternalServerError,
"failed to load article")
return