mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-02-13 23:45:08 -05:00
fix: shadowing original error
This fixes shadowing the original error so that the original error is propagated upwards
This commit is contained in:
@@ -56,7 +56,6 @@ func Init() (ret *Flags, err error) {
|
||||
// takes input from stdin if it exists, otherwise takes input from args (the last argument)
|
||||
if hasStdin {
|
||||
if message, err = readStdin(); err != nil {
|
||||
err = errors.New("error: could not read from stdin")
|
||||
return
|
||||
}
|
||||
} else if len(args) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user