diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-01-22 15:45:48 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-01-22 15:45:48 +0000 |
| commit | 49f9ec23d00bec2f284118fed3d48d10a6cc8537 (patch) | |
| tree | 2ab1b8daaee091ade76977ea5d971b5d78cf13de /src/exceptions.cc | |
| parent | 46766164d06e0aa58ea5064bec9b313ff5cd2399 (diff) | |
Reveal path in MissingAssetError.
Diffstat (limited to 'src/exceptions.cc')
| -rw-r--r-- | src/exceptions.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/exceptions.cc b/src/exceptions.cc index 5c486d09..e9cdcef1 100644 --- a/src/exceptions.cc +++ b/src/exceptions.cc @@ -64,10 +64,11 @@ TimeFormatError::TimeFormatError (string bad_time) MissingAssetError::MissingAssetError (boost::filesystem::path path, AssetType type) : DCPReadError ( - type == MAIN_PICTURE ? String::compose ("Missing asset %1 for main picture", path.string()) : - (type == MAIN_SOUND ? String::compose ("Missing asset %1 for main sound", path.string()) : - (type == MAIN_SUBTITLE ? String::compose ("Missing asset %1 for main subtitle", path.string()) : - String::compose ("Missing asset %1", path.string())))) + type == MAIN_PICTURE ? String::compose ("Missing asset %1 for main picture", path.filename().string()) : + (type == MAIN_SOUND ? String::compose ("Missing asset %1 for main sound", path.filename().string()) : + (type == MAIN_SUBTITLE ? String::compose ("Missing asset %1 for main subtitle", path.filename().string()) : + String::compose ("Missing asset %1", path.filename().string())))) + , _path (path) { } |
