diff --git a/libdevcore/CommonIO.cpp b/libdevcore/CommonIO.cpp index cfe7b8a6b..122125520 100644 --- a/libdevcore/CommonIO.cpp +++ b/libdevcore/CommonIO.cpp @@ -111,7 +111,7 @@ void dev::writeFile(std::string const& _file, bytesConstRef _data, bool _writeDe ofstream s(_file, ios::trunc | ios::binary); s.write(reinterpret_cast(_data.data()), _data.size()); if (!s) - BOOST_THROW_EXCEPTION(FileError()); + BOOST_THROW_EXCEPTION(FileError() << errinfo_comment("Could not write to file: " + _file)); } }