exec: remove unused IsPermissionError
No longer called anywhere after the sandbox fallback was removed from anvillm-mcp. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5aea341255
commit
f11d1a4d09
|
|
@ -230,15 +230,6 @@ func (e *Executor) ValidateCode(code string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsPermissionError returns true if err indicates a permission or missing-file error.
|
|
||||||
func IsPermissionError(err error) bool {
|
|
||||||
if err == nil {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
msg := strings.ToLower(err.Error())
|
|
||||||
return strings.Contains(msg, "permission denied") ||
|
|
||||||
strings.Contains(msg, "no such file or directory")
|
|
||||||
}
|
|
||||||
|
|
||||||
func loadLayeredConfig(name string) (*sandbox.Config, error) {
|
func loadLayeredConfig(name string) (*sandbox.Config, error) {
|
||||||
baseCfg, err := sandbox.Load()
|
baseCfg, err := sandbox.Load()
|
||||||
|
|
|
||||||
Reference in New Issue