/*
- Copyright (C) 2012-2016 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2018 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
#include "exceptions.h"
#include "film.h"
#include "log.h"
+#include "analytics.h"
#include "compose.hpp"
#include <dcp/exceptions.h>
#include <sub/exceptions.h>
set_progress (1);
set_state (FINISHED_ERROR);
+ } catch (dcp::DCPReadError& e) {
+
+ set_error (e.what(), "");//message(), e.detail().get_value_or(""));
+ set_progress (1);
+ set_state (FINISHED_ERROR);
+
+ } catch (KDMError& e) {
+
+ set_error (e.summary(), e.detail());
+ set_progress (1);
+ set_state (FINISHED_ERROR);
+
} catch (std::exception& e) {
set_error (
finished = true;
_sub_name.clear ();
}
+
}
if (finished) {
emit (boost::bind (boost::ref (Finished)));
}
+
+ Analytics::instance()->job_state_changed (shared_from_this());
}
/** @return DCPTime (in seconds) that this sub-job has been running */