Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
add err logger
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshihiro-shu committed Apr 26, 2024
1 parent 8e048ec commit fd5a38f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/interfaces/api/handler/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func (h profileHandler) GetResume(w http.ResponseWriter, r *http.Request) error
h.logger.Info("Get Resume String", zap.String("htmlContent", string(res)))
h.logger.Info("Get Resume Any", zap.Any("res", res))
if err != nil {
h.logger.Error("failed at get resume.", zap.Error(err))
return request.JSON(w, http.StatusInternalServerError, err.Error())
}
return request.JSON(w, http.StatusOK, responseGetResume{string(res)})
Expand Down

0 comments on commit fd5a38f

Please sign in to comment.