player/Control: use class Error as C++ exception, throw it

This commit is contained in:
Max Kellermann
2016-09-08 10:29:49 +02:00
parent 3da4648112
commit 6e52ab285a
9 changed files with 150 additions and 141 deletions

View File

@@ -238,8 +238,11 @@ playlist::DeleteInternal(PlayerControl &pc,
if (current >= 0 && !paused)
/* play the song after the deleted one */
/* TODO: log error? */
PlayOrder(pc, current, IgnoreError());
try {
PlayOrder(pc, current);
} catch (...) {
/* TODO: log error? */
}
else {
/* stop the player */