Skip to content

Commit

Permalink
fix: Return expected error type
Browse files Browse the repository at this point in the history
  • Loading branch information
dadav committed Jun 5, 2024
1 parent 581c459 commit dbbc3ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/v3/backend/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func (s *FilesystemBackend) GetReleaseBySlug(slug string) (*gen.Release, error)
}
}
}
return nil, errors.New("release not found")
return nil, os.ErrNotExist
}

func (s *FilesystemBackend) DeleteModuleBySlug(slug string) error {
Expand Down

0 comments on commit dbbc3ae

Please sign in to comment.