Merge branch 'dtolnay-timeouterror'
This commit is contained in:
commit
a69c62af65
|
@ -44,9 +44,11 @@ type TimeoutError struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *TimeoutError) Error() string {
|
func (e *TimeoutError) Error() string {
|
||||||
return fmt.Sprintf(
|
if e.LastError != nil {
|
||||||
"timeout while waiting for state to become '%s'. last error: %s",
|
return fmt.Sprintf("timeout while waiting for state to become '%s': %s",
|
||||||
strings.Join(e.ExpectedState, ", "),
|
strings.Join(e.ExpectedState, ", "), e.LastError)
|
||||||
e.LastError,
|
}
|
||||||
)
|
|
||||||
|
return fmt.Sprintf("timeout while waiting for state to become '%s'",
|
||||||
|
strings.Join(e.ExpectedState, ", "))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue