diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-10-20 10:49:29 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-10-20 10:49:29 +0100 |
| commit | e0adfd85dd7987ee2b77eea7f6d3c13885729a38 (patch) | |
| tree | 924ed417edc2c7c579a58c868d8370f3346008d9 /src/lib/cinema_kdms.cc | |
| parent | 4a18e763a17cf046fabe3aad7ab66546124a93a9 (diff) | |
Replace StringError with the equivalent std::runtime_error.
Diffstat (limited to 'src/lib/cinema_kdms.cc')
| -rw-r--r-- | src/lib/cinema_kdms.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/cinema_kdms.cc b/src/lib/cinema_kdms.cc index 37c9e1fb5..eb71b3202 100644 --- a/src/lib/cinema_kdms.cc +++ b/src/lib/cinema_kdms.cc @@ -34,6 +34,7 @@ using std::list; using std::cout; using std::string; +using std::runtime_error; using boost::shared_ptr; void @@ -56,16 +57,16 @@ CinemaKDMs::make_zip_file (string film_name, boost::filesystem::path zip_file) c struct zip_source* source = zip_source_buffer (zip, kdm->c_str(), kdm->length(), 0); if (!source) { - throw StringError ("could not create ZIP source"); + throw runtime_error ("could not create ZIP source"); } if (zip_add (zip, i.filename(film_name).c_str(), source) == -1) { - throw StringError ("failed to add KDM to ZIP archive"); + throw runtime_error ("failed to add KDM to ZIP archive"); } } if (zip_close (zip) == -1) { - throw StringError ("failed to close ZIP archive"); + throw runtime_error ("failed to close ZIP archive"); } } |
