summaryrefslogtreecommitdiff
path: root/src/pb_controller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pb_controller.cpp')
-rw-r--r--src/pb_controller.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pb_controller.cpp b/src/pb_controller.cpp
index b95c18e9..c65e95de 100644
--- a/src/pb_controller.cpp
+++ b/src/pb_controller.cpp
@@ -371,9 +371,10 @@ void pb_controller::play_file(const std::string& file) {
cmdline.append(utils::replace_all(file,"\"", "\\\""));
cmdline.append("\"");
stfl::reset();
- // Is the following exit code important?
- int unused __attribute__((unused));
- unused = utils::run_interactively(cmdline, "pb_controller::play_file");
+ int player_exit_code = utils::run_interactively(cmdline, "pb_controller::play_file");
+ if (player_exit_code != 0) {
+ v->dllist_form.set("msg", _("The player failed!"));
+ }
}