summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-02-04 20:46:37 +0000
committerCarl Hetherington <cth@carlh.net>2013-02-04 20:46:37 +0000
commit6b4527e671bc3fdb4e1a687b066c44ca90a25377 (patch)
tree63db3bed8d6f9fa9cabe1b322d92a38a91ad1e30 /src
parent90550787a8b00329170a6a1d0e9bb58aeb92ac6f (diff)
Try to return an error code if things go wrong.
Diffstat (limited to 'src')
-rw-r--r--src/tools/makedcp.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/makedcp.cc b/src/tools/makedcp.cc
index 447b0ddc0..892bed3b8 100644
--- a/src/tools/makedcp.cc
+++ b/src/tools/makedcp.cc
@@ -159,6 +159,7 @@ main (int argc, char* argv[])
bool should_stop = false;
bool first = true;
+ bool error = false;
while (!should_stop) {
dvdomatic_sleep (5);
@@ -194,6 +195,7 @@ main (int argc, char* argv[])
if ((*i)->finished_in_error ()) {
++finished_in_error;
+ error = true;
}
if (!progress && (*i)->finished_in_error ()) {
@@ -209,7 +211,7 @@ main (int argc, char* argv[])
}
}
- return 0;
+ return error ? EXIT_FAILURE : EXIT_SUCCESS;
}