From e31cd97154eeb9aa41656d0e7deb06863fec78bb Mon Sep 17 00:00:00 2001 From: Mika Vilpas Date: Thu, 9 May 2024 16:07:37 +0300 Subject: [PATCH] feat: when a plugin already exists, clearly show its path This way the user can easily diagnose the situation without knowing the internals of the yazi plugin system. --- yazi-cli/src/package/deploy.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yazi-cli/src/package/deploy.rs b/yazi-cli/src/package/deploy.rs index dfa8b7e0..35c61619 100644 --- a/yazi-cli/src/package/deploy.rs +++ b/yazi-cli/src/package/deploy.rs @@ -22,8 +22,9 @@ impl Package { let tracker = to.join(TRACKER); if maybe_exists(&to).await && !must_exists(&tracker).await { bail!( - "A user package with the same name `{name}` already exists. -For safety, please manually delete it from your plugin/flavor directory and re-run the command." + "A user package with the same name `{}` already exists. +For safety, please manually delete it and re-run the command.", + to.display() ); }