Skip to content

Commit

Permalink
refactor: minor tweak in error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
dpastoor committed Jul 1, 2022
1 parent 1caee05 commit 7e906f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/config/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e906f1

Please sign in to comment.