mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
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.
This commit is contained in:
parent
4c5704e970
commit
e31cd97154
1 changed files with 3 additions and 2 deletions
|
|
@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue