forked from remote/oauth2
Use correct detection method for timeout errors
This commit is contained in:
@@ -89,7 +89,7 @@ var runCommand = func(ctx context.Context, command string, env []string) ([]byte
|
||||
return response, nil
|
||||
}
|
||||
|
||||
if err == context.DeadlineExceeded {
|
||||
if ctx.Err() != nil && errors.Is(ctx.Err(), context.DeadlineExceeded) {
|
||||
return nil, timeoutError()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user