Change error code type to avoid integer overflow conversion warning

This commit is contained in:
Deluan
2024-09-01 14:41:21 -04:00
parent 4612b0a518
commit fc5d18feb7
3 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -281,7 +281,7 @@ func sendError(w http.ResponseWriter, r *http.Request, err error) {
subErr := mapToSubsonicError(err)
response := newResponse()
response.Status = responses.StatusFailed
response.Error = &responses.Error{Code: int32(subErr.code), Message: subErr.Error()}
response.Error = &responses.Error{Code: subErr.code, Message: subErr.Error()}
sendResponse(w, r, response)
}