fix(skill): show real error and helpful tip when skill install fails
This commit is contained in:
+3
-2
@@ -327,8 +327,9 @@ def _install_skill():
|
|||||||
with open(os.path.join(target, "SKILL.md"), "w") as f:
|
with open(os.path.join(target, "SKILL.md"), "w") as f:
|
||||||
f.write(skill_md)
|
f.write(skill_md)
|
||||||
print(f"Skill installed: {target}")
|
print(f"Skill installed: {target}")
|
||||||
except Exception:
|
except Exception as e:
|
||||||
print(" -- Could not install agent skill (optional)")
|
print(f" -- Could not install agent skill (optional): {e}")
|
||||||
|
print(" -- Tip: install OpenClaw, Claude Code, or create ~/.agents/skills/ manually")
|
||||||
|
|
||||||
|
|
||||||
def _uninstall_skill():
|
def _uninstall_skill():
|
||||||
|
|||||||
Reference in New Issue
Block a user