mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-12 11:07:35 +00:00
Return the results on error
This commit is contained in:
@@ -121,7 +121,7 @@ func ExecuteCommand(
|
||||
return stdout.String(), nil
|
||||
case <-time.After(execConfig.timeout):
|
||||
|
||||
return "", fmt.Errorf("command timed out after %s", execConfig.timeout)
|
||||
return stderr.String(), fmt.Errorf("command timed out after %s", execConfig.timeout)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user