Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatCommandStderr ¶
FormatCommandStderr is FormatStderr for an error returned by the command at path, such as "asc review items add". An HTTP 409 that gets no other hint gets that command's conflictNextSteps entry.
func FormatStderr ¶
func IsNetworkFailure ¶
IsNetworkFailure reports whether err is a failure to reach a server (dial, DNS, TLS, proxy, or a dropped connection) rather than a server response or local work. It matches the transport error types, never a bare io.EOF, so a truncated local file is not mistaken for a network problem.
Types ¶
type ClassifiedError ¶
func Classify ¶
func Classify(err error) ClassifiedError