png_reader: quote filenames in error output
This commit is contained in:
parent
6c8a8007e4
commit
f49654b160
1 changed files with 2 additions and 2 deletions
|
@ -128,8 +128,8 @@ png_reader<T>::png_reader(std::string const& file_name)
|
|||
bit_depth_(0),
|
||||
color_type_(0)
|
||||
{
|
||||
if (!source_.is_open()) throw image_reader_exception("PNG reader: cannot open file "+ file_name);
|
||||
if (!stream_) throw image_reader_exception("PNG reader: cannot open file "+ file_name);
|
||||
if (!source_.is_open()) throw image_reader_exception("PNG reader: cannot open file '"+ file_name + "'");
|
||||
if (!stream_) throw image_reader_exception("PNG reader: cannot open file '"+ file_name + "'");
|
||||
init();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue