-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Subsonic: Fix unhandled exception on
deleteBookmark
There was an unhandled exception when the Subsonic action `deleteBookmark` was called for a non-existent bookmark, and this got logged as an error. This happened because, by convention, the business layer modules should throw BusinessLayerException in case the requested item doesn't exist. The SubsonicMiddleware catches such exceptions and emits the proper Subsonic error response. But BookmarkBusinessLayer was throwing wrong kind of exception here and it leaked through. refs #1071
- Loading branch information
Showing
2 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters