Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
import
"strings"
4
5
func
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
dockerCmd
Function · 0.92
PullImage
Function · 0.92
Calls
1
Error
Method · 0.65
Tested by
no test coverage detected