More verbose errors

This commit is contained in:
andreimarcu 2015-10-04 12:47:20 -04:00
parent 335517bf17
commit d40803f165
9 changed files with 96 additions and 37 deletions

View file

@ -136,8 +136,8 @@ func TestPutEmptyUpload(t *testing.T) {
goji.DefaultMux.ServeHTTP(w, req)
if !strings.Contains(w.Body.String(), "Oops! Something went wrong.") {
t.Fatal("Response doesn't contain'Oops! Something went wrong.'")
if !strings.Contains(w.Body.String(), "Empty file") {
t.Fatal("Response doesn't contain'Empty file'")
}
}