MCPcopy Index your code
hub / github.com/coder/envbox / IsNoSpaceErr

Function IsNoSpaceErr

xunix/error.go:5–11  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

3import "strings"
4
5func IsNoSpaceErr(err error) bool {
6 if err == nil {
7 return false
8 }
9
10 return strings.Contains(strings.ToLower(err.Error()), "no space left on device")
11}

Callers 2

dockerCmdFunction · 0.92
PullImageFunction · 0.92

Calls 1

ErrorMethod · 0.65

Tested by

no test coverage detected