Simplify error responses

This commit is contained in:
Deluan
2020-10-27 15:23:29 -04:00
parent 0f418a93cd
commit 4777cf0aba
14 changed files with 126 additions and 122 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ var _ = Describe("MediaRetrievalController", func() {
r := newGetRequest()
_, err := controller.GetCoverArt(w, r)
Expect(err).To(MatchError("id parameter required"))
Expect(err).To(MatchError("required 'id' parameter is missing"))
})
It("should fail when the file is not found", func() {
@@ -54,7 +54,7 @@ var _ = Describe("MediaRetrievalController", func() {
r := newGetRequest("id=34", "size=128")
_, err := controller.GetCoverArt(w, r)
Expect(err).To(MatchError("Internal Error"))
Expect(err).To(MatchError("weird error"))
})
})
})