mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-29 18:33:05 +00:00
Return the results on error
This commit is contained in:
parent
b27b789e28
commit
cb70d7c705
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue