PlaylistFile: convert system_error::ENOENT to PlaylistResult::NO_SUCH_LIST

This commit is contained in:
Max Kellermann
2015-12-28 06:43:41 +01:00
parent 72851647ca
commit fe0b6a1117
2 changed files with 15 additions and 2 deletions

View File

@@ -55,6 +55,11 @@ public:
"No such song");
}
static PlaylistError NoSuchList() {
return PlaylistError(PlaylistResult::NO_SUCH_LIST,
"No such playlist");
}
static PlaylistError BadRange() {
return PlaylistError(PlaylistResult::BAD_RANGE,
"Bad song index");