@przeprogramowani/10x-cli 1.25.1 → 1.25.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +4 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3183,7 +3183,7 @@ var cac = (name = "") => new CAC(name);
|
|
|
3183
3183
|
// package.json
|
|
3184
3184
|
var package_default = {
|
|
3185
3185
|
name: "@przeprogramowani/10x-cli",
|
|
3186
|
-
version: "1.25.
|
|
3186
|
+
version: "1.25.3",
|
|
3187
3187
|
description: "Open-source CLI for 10xDevs course content",
|
|
3188
3188
|
repository: {
|
|
3189
3189
|
type: "git",
|
|
@@ -3423,8 +3423,9 @@ function messageForApiError(payload) {
|
|
|
3423
3423
|
if (typeof payload.message === "string" && payload.message.length > 0) {
|
|
3424
3424
|
return payload.message;
|
|
3425
3425
|
}
|
|
3426
|
-
|
|
3427
|
-
|
|
3426
|
+
const code = payload.code ?? payload.error;
|
|
3427
|
+
if (typeof code === "string" && code.length > 0) {
|
|
3428
|
+
return ERROR_CODE_MESSAGES[code];
|
|
3428
3429
|
}
|
|
3429
3430
|
return;
|
|
3430
3431
|
}
|