0

Return detailed error. Closes #781

This commit is contained in:
Gabe Kangas 2021-03-02 19:10:27 -08:00
parent 717e4f9ceb
commit 4a233ab7ac

View File

@ -378,7 +378,7 @@ func SetStreamOutputVariants(w http.ResponseWriter, r *http.Request) {
decoder := json.NewDecoder(r.Body)
var videoVariants streamOutputVariantRequest
if err := decoder.Decode(&videoVariants); err != nil {
controllers.WriteSimpleResponse(w, false, "unable to update video config with provided values")
controllers.WriteSimpleResponse(w, false, "unable to update video config with provided values "+err.Error())
return
}
@ -403,7 +403,7 @@ func SetStreamOutputVariants(w http.ResponseWriter, r *http.Request) {
}
if err := data.SetStreamOutputVariants(videoVariants.Value); err != nil {
controllers.WriteSimpleResponse(w, false, "unable to update video config with provided values")
controllers.WriteSimpleResponse(w, false, "unable to update video config with provided values "+err.Error())
return
}