mirror of
https://github.com/docker/cli.git
synced 2026-01-26 15:41:42 +03:00
Signed-off-by: Alexander Morozov <lk4d4@docker.com> Upstream-commit: f2614f2107c838d014d31b806e3b8a9f1395cb2b Component: engine
19 lines
368 B
Go
19 lines
368 B
Go
package zfs
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// Error is an error which is returned when the `zfs` or `zpool` shell
|
|
// commands return with a non-zero exit code.
|
|
type Error struct {
|
|
Err error
|
|
Debug string
|
|
Stderr string
|
|
}
|
|
|
|
// Error returns the string representation of an Error.
|
|
func (e Error) Error() string {
|
|
return fmt.Sprintf("%s: %q => %s", e.Err, e.Debug, e.Stderr)
|
|
}
|