We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff32583 commit 1467e6dCopy full SHA for 1467e6d
1 file changed
stream/response.js
@@ -32,13 +32,9 @@ class Response extends ServerResponse {
32
end(chunk, ...args) {
33
if (chunk) this.write(chunk);
34
35
- try {
36
- const result = this.toJSON();
37
- this._resolve(result);
38
- } catch (err) {
39
- console.error('Failed to resolve serverless response:', err);
40
- }
41
-
+ const result = this.toJSON();
+ this._resolve(result);
+
42
return super.end(null, ...args);
43
}
44
0 commit comments