fix: 500 server error when files.create request is closed by client (#5878)

This commit is contained in:
Tom Moor
2023-09-24 16:30:52 -04:00
committed by GitHub
parent 517f2634e3
commit 136ee0ad1d
4 changed files with 161 additions and 175 deletions

View File

@@ -9,7 +9,7 @@ describe("/test/error", () => {
});
const body = await res.json();
expect(res.status).toBe(500);
expect(body.message).toBe("Internal server error");
expect(body.message).toBe("Internal error");
});
it("should return error response as html", async () => {
@@ -33,6 +33,6 @@ describe("/test/error", () => {
});
const body = await res.json();
expect(res.status).toBe(500);
expect(body.message).toBe("Internal server error");
expect(body.message).toBe("Internal error");
});
});