diff --git a/core/host/supervisor.go b/core/host/supervisor.go index 80f34a2b..e8ea77a6 100644 --- a/core/host/supervisor.go +++ b/core/host/supervisor.go @@ -517,7 +517,7 @@ func (su *Supervisor) shutdownOnInterrupt(ctx context.Context) { // fileExists tries to report whether a local physical file of "filename" exists. func fileExists(filename string) bool { info, err := os.Stat(filename) - if os.IsNotExist(err) { + if err != nil { return false }