mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-08-04 19:25:13 -04:00
shutdown: print stderr to log
This commit is contained in:
@@ -32,9 +32,6 @@ func ShutdownDevice(device *models.Record) error {
|
||||
var stderr bytes.Buffer
|
||||
cmd.Stderr = &stderr
|
||||
if err := cmd.Run(); err != nil {
|
||||
return err
|
||||
}
|
||||
if stderr.Len() > 0 {
|
||||
return fmt.Errorf("%s", stderr.String())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user