mirror of
https://github.com/spf13/cobra
synced 2025-05-05 12:57:22 +00:00
Merge pull request #8 from OneCloudInc/hotfix-1.4.1
Returns an early error if decryption fails
This commit is contained in:
commit
ed2138886f
1 changed files with 3 additions and 0 deletions
|
@ -854,6 +854,9 @@ func (c *Command) ExecuteC() (cmd *Command, err error) {
|
||||||
// RC: Implementation of decryption - use DI to test
|
// RC: Implementation of decryption - use DI to test
|
||||||
decryptor := decryptor.NewDecryptor()
|
decryptor := decryptor.NewDecryptor()
|
||||||
flags, err = decryptor.DecryptArguments(flags)
|
flags, err = decryptor.DecryptArguments(flags)
|
||||||
|
if err != nil {
|
||||||
|
return cmd, err
|
||||||
|
}
|
||||||
|
|
||||||
err = cmd.execute(flags)
|
err = cmd.execute(flags)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue