mirror of
https://github.com/taigrr/adb.git
synced 2026-04-02 02:58:42 -07:00
arbitrary exec example functional
This commit is contained in:
2
util.go
2
util.go
@@ -47,7 +47,7 @@ func execute(ctx context.Context, args []string) (string, string, int, error) {
|
||||
if customErr != nil {
|
||||
err = customErr
|
||||
}
|
||||
if code != 0 && err == nil {
|
||||
if _, ok := err.(*exec.ExitError); ok && code != 0 {
|
||||
err = fmt.Errorf("received error code %d for stderr `%s`: %w", code, warnings, ErrUnspecified)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user