File tree Expand file tree Collapse file tree 3 files changed +214
-200
lines changed Expand file tree Collapse file tree 3 files changed +214
-200
lines changed Original file line number Diff line number Diff line change @@ -5996,7 +5996,7 @@ var import_endpoint = __nccwpck_require__(9440);
5996
5996
var import_universal_user_agent = __nccwpck_require__(5030);
5997
5997
5998
5998
// pkg/dist-src/version.js
5999
- var VERSION = "8.1.6 ";
5999
+ var VERSION = "8.2.0 ";
6000
6000
6001
6001
// pkg/dist-src/is-plain-object.js
6002
6002
function isPlainObject(value) {
@@ -6140,11 +6140,17 @@ async function getResponseData(response) {
6140
6140
function toErrorMessage(data) {
6141
6141
if (typeof data === "string")
6142
6142
return data;
6143
+ let suffix;
6144
+ if ("documentation_url" in data) {
6145
+ suffix = ` - ${data.documentation_url}`;
6146
+ } else {
6147
+ suffix = "";
6148
+ }
6143
6149
if ("message" in data) {
6144
6150
if (Array.isArray(data.errors)) {
6145
- return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}`;
6151
+ return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}${suffix} `;
6146
6152
}
6147
- return data.message;
6153
+ return `${ data.message}${suffix}` ;
6148
6154
}
6149
6155
return `Unknown error: ${JSON.stringify(data)}`;
6150
6156
}
You can’t perform that action at this time.
0 commit comments