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:
Stefane Fermigier 2020-03-23 12:07:20 +01:00 committed by GitHub
parent 29a11d9a9c
commit 60fecdf242
Failed to generate hash of commit

View file

@ -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