Skip to content

Commit 523c0d7

Browse files
removed extraneous commas from error message
1 parent 4ef667e commit 523c0d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/errorMessage.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ function getErrorAsMessage(url, api, err) {
77
url = url.split("?")[0];
88

99
if (err.status) str += `Code: ${err.status}`;
10-
if (err.action) str += `, Action: ${err.action}`;
11-
if (err.type) str += `, Type: ${err.type}`;
12-
if (url) str += `, url: ${url}`;
13-
if (api && api.method) str += `, method: ${api.method}`;
10+
if (err.action) str += ` Action: ${err.action}`;
11+
if (err.type) str += ` Type: ${err.type}`;
12+
if (url) str += ` url: ${url}`;
13+
if (api && api.method) str += ` method: ${api.method}`;
1414
return str;
1515
}
1616

0 commit comments

Comments
 (0)