diff --git a/server/server/server.go b/server/server/server.go index 584836de6..a8ebbff7c 100644 --- a/server/server/server.go +++ b/server/server/server.go @@ -374,8 +374,11 @@ func (s *Server) startLocalModeServer() error { } // TODO: Close and delete socket file on shutdown - if err := syscall.Unlink(s.config.LocalModeSocketLocation); err != nil { - s.logger.Error("Unable to unlink socket.", mlog.Err(err)) + // Delete existing socket if it exists + if _, err := os.Stat(s.config.LocalModeSocketLocation); err == nil { + if err := syscall.Unlink(s.config.LocalModeSocketLocation); err != nil { + s.logger.Error("Unable to unlink socket.", mlog.Err(err)) + } } socket := s.config.LocalModeSocketLocation diff --git a/webapp/src/components/properties/lastModifiedAt/__snapshots__/lastModifiedAt.test.tsx.snap b/webapp/src/components/properties/lastModifiedAt/__snapshots__/lastModifiedAt.test.tsx.snap index 67e84755a..4dcaea2de 100644 --- a/webapp/src/components/properties/lastModifiedAt/__snapshots__/lastModifiedAt.test.tsx.snap +++ b/webapp/src/components/properties/lastModifiedAt/__snapshots__/lastModifiedAt.test.tsx.snap @@ -5,7 +5,7 @@ exports[`componnets/properties/lastModifiedAt should match snapshot 1`] = `