projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7374d3a
)
Better error message.
author
Carl Hetherington
<cth@carlh.net>
Wed, 9 Oct 2013 12:58:08 +0000
(13:58 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 9 Oct 2013 12:58:08 +0000
(13:58 +0100)
src/exceptions.h
patch
|
blob
|
history
diff --git
a/src/exceptions.h
b/src/exceptions.h
index de744812dcfd25dbb93bd5dc06ffaa77c381e898..3e27f8f7493646243cbfb55a807f938dfa42f267 100644
(file)
--- a/
src/exceptions.h
+++ b/
src/exceptions.h
@@
-34,7
+34,7
@@
class FileError : public std::exception
{
public:
FileError (std::string const & message, boost::filesystem::path filename)
- : _message (message)
+ : _message (message
+ "(" + filename.string() + ")"
)
, _filename (filename)
{}
@@
-51,7
+51,7
@@
public:
}
private:
- /**
error message
*/
+ /**
message part
*/
std::string _message;
/** filename of file that was involved */
boost::filesystem::path _filename;