fix(commands): use specific validation reason in blocked-directory warning
Show the actual reason from validateDirectory (e.g. "Refusing to run in your home directory" or "Refusing to run in system directory: /usr") instead of a generic "No project found" message.
This commit is contained in:
parent
cb6b9c38d6
commit
567f5242ca
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ export async function handleGSDCommand(
|
|||
} catch (err) {
|
||||
if (err instanceof GSDNoProjectError) {
|
||||
ctx.ui.notify(
|
||||
"No project found in this directory. `cd` into a project directory or run `/gsd new-project` to initialize one.",
|
||||
`${err.message} \`cd\` into a project directory first.`,
|
||||
"warning",
|
||||
);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue