skillstogether 0.1.4 → 0.1.5
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.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1246,7 +1246,7 @@ var addCommand = new Command("add").description("Install skills from an organiza
|
|
|
1246
1246
|
} else if (options.skill) {
|
|
1247
1247
|
const skillResult = skillSlugSchema.safeParse(options.skill);
|
|
1248
1248
|
if (!skillResult.success) {
|
|
1249
|
-
const msg = skillResult.error.
|
|
1249
|
+
const msg = skillResult.error.issues?.[0]?.message ?? skillResult.error.message ?? "Invalid skill slug";
|
|
1250
1250
|
p2.log.error(msg);
|
|
1251
1251
|
p2.outro(pc3.red("Invalid format"));
|
|
1252
1252
|
process.exit(1);
|