We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eecb81 commit 74c99faCopy full SHA for 74c99fa
lib/Client.ts
@@ -28,7 +28,7 @@ function sendRequest<T>(options: request.UriOptions) {
28
const firstErr = (data.errors && Array.isArray(data.errors) && data.errors.length !== 0) ? data.errors[0] : undefined;
29
switch (response.statusCode) {
30
case 400:
31
- reject(new Exceptions.Malformed(firstErr.message || "Not Found"));
+ reject(new Exceptions.Malformed(`${firstErr.message}: ${firstErr.field}` || "Not Found"));
32
33
return;
34
case 401:
0 commit comments