diff --git a/internal/config/fs.go b/internal/config/fs.go index 79d230f..c9f9a6b 100644 --- a/internal/config/fs.go +++ b/internal/config/fs.go @@ -49,7 +49,7 @@ func GetPathToVersionsDir() string { func GetActiveVersion() (string, error) { path, err := filepath.EvalSymlinks(GetPathToActiveQuartoExe()) if err != nil { - if os.IsNotExist(err) { + if errors.Is(err, os.ErrNotExist) { return "", errors.New("no active quarto version detected") } return "", err