File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
services/question-service/handlers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ func (s *Service) ListQuestions(w http.ResponseWriter, r *http.Request) {
108
108
totalIter , err := query .Documents (ctx ).GetAll ()
109
109
totalCount := len (totalIter )
110
110
if err != nil {
111
- http .Error (w , "Failed to count questions: " + err . Error () , http .StatusInternalServerError )
111
+ http .Error (w , "Failed to count questions" , http .StatusInternalServerError )
112
112
return
113
113
}
114
114
@@ -148,14 +148,14 @@ func (s *Service) ListQuestions(w http.ResponseWriter, r *http.Request) {
148
148
break
149
149
}
150
150
if err != nil {
151
- http .Error (w , "Failed to retrieve questions: " , http .StatusInternalServerError )
151
+ http .Error (w , "Failed to retrieve questions" , http .StatusInternalServerError )
152
152
return
153
153
}
154
154
155
155
// Map data
156
156
var question models.Question
157
157
if err := doc .DataTo (& question ); err != nil {
158
- http .Error (w , "Failed to parse question: " , http .StatusInternalServerError )
158
+ http .Error (w , "Failed to parse question" , http .StatusInternalServerError )
159
159
return
160
160
}
161
161
question .DocRefID = doc .Ref .ID
You can’t perform that action at this time.
0 commit comments