aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/sharefs/fuse.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/sharefs/fuse.go')
-rw-r--r--cmd/sharefs/fuse.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/sharefs/fuse.go b/cmd/sharefs/fuse.go
index c9855eb7..5dfbf385 100644
--- a/cmd/sharefs/fuse.go
+++ b/cmd/sharefs/fuse.go
@@ -508,8 +508,8 @@ func _main(s ...string) (exitCode int) {
if !z.AllowOrphan {
if err := z.Wait(); err != nil {
- var exitError *exec.ExitError
- if !errors.As(err, &exitError) || exitError == nil {
+ exitError, ok := errors.AsType[*exec.ExitError](err)
+ if !ok || exitError == nil {
log.Println(err)
return 5
}