mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Fix error message
The error message for `vox rm` wrongly assumed that `vox deactivate` needs an argument. Example of the error in action: ``` (jnov) fermigier@mbp-stefane-abilian ~/projects/jnov master $ vox rm jnov The "jnov" environment is currently active. In order to remove it, deactivate it first with "vox deactivate jnov". (jnov) fermigier@mbp-stefane-abilian ~/projects/jnov master $ vox deactivate jnov usage: vox [-h] {new,create,activate,workon,enter,deactivate,exit,list,ls,remove,rm,delete,del,help} ... vox: error: unrecognized arguments: jnov (jnov) fermigier@mbp-stefane-abilian ~/projects/jnov master $ vox deactivate Deactivated "jnov". ```
This commit is contained in:
parent
29a11d9a9c
commit
60fecdf242
1 changed files with 2 additions and 2 deletions
|
@ -209,8 +209,8 @@ class VoxHandler:
|
|||
del self.vox[name]
|
||||
except voxapi.EnvironmentInUse:
|
||||
print(
|
||||
'The "%s" environment is currently active. In order to remove it, deactivate it first with "vox deactivate %s".\n'
|
||||
% (name, name),
|
||||
'The "%s" environment is currently active. In order to remove it, deactivate it first with "vox deactivate".\n'
|
||||
% name,
|
||||
file=sys.stderr,
|
||||
)
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue