Skip to content

Commit 70ca7bd

Browse files
authored
Make some error messages more helpful (#4177)
1 parent 9371958 commit 70ca7bd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Controllers/HooksController.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,11 @@ function wrapToHTTPRequest(hook, key) {
191191
try {
192192
body = JSON.parse(body);
193193
} catch (e) {
194-
err = { error: "Malformed response", code: -1 };
194+
err = {
195+
error: "Malformed response",
196+
code: -1,
197+
partialResponse: body.substring(0, 100)
198+
};
195199
}
196200
}
197201
if (!err) {

0 commit comments

Comments
 (0)