You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.Error("attempted to download non-existent recording", "recorder_id", recorderID)
141
143
return oapi.DownloadRecording404JSONResponse{NotFoundErrorJSONResponse: oapi.NotFoundErrorJSONResponse{Message: "no recording found"}}, nil
142
144
}
145
+
ifrec.IsDeleted(ctx) {
146
+
log.Error("attempted to download deleted recording", "recorder_id", recorderID)
147
+
return oapi.DownloadRecording400JSONResponse{BadRequestErrorJSONResponse: oapi.BadRequestErrorJSONResponse{Message: "requested recording has been deleted"}}, nil
log.Error("attempted to delete non-existent recording", "recorder_id", recorderID)
186
+
return oapi.DeleteRecording404JSONResponse{NotFoundErrorJSONResponse: oapi.NotFoundErrorJSONResponse{Message: "no recording found"}}, nil
187
+
}
188
+
189
+
ifrec.IsRecording(ctx) {
190
+
log.Error("attempted to delete recording while still in progress", "recorder_id", recorderID)
191
+
return oapi.DeleteRecording400JSONResponse{BadRequestErrorJSONResponse: oapi.BadRequestErrorJSONResponse{Message: "recording must be stopped first"}}, nil
0 commit comments