mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
Improved validation error message
This commit is contained in:
@@ -56,7 +56,7 @@ func AddArticleHandler(c *gin.Context) {
|
|||||||
|
|
||||||
err = pushDocument(articlesLocation, document)
|
err = pushDocument(articlesLocation, document)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
SendBadRequest(c, "Could not insert document into DB.")
|
SendBadRequest(c, fmt.Sprintf(`Could not insert document into DB: %v`, err.Error()))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user