DLATypeSystem.cpp: improve error reporting

This commit is contained in:
Pietro Fezzardi
2022-03-08 17:02:09 +01:00
parent 8e3b1c0080
commit acef606a73
+1 -1
View File
@@ -106,7 +106,7 @@ void debug_function LayoutTypeSystem::dumpDotOnFile(const char *FName,
bool ShowCollapsed) const {
std::error_code EC;
raw_fd_ostream DotFile(FName, EC);
revng_check(not EC, "Could not open file for printing LayoutTypeSystem dot");
revng_check(not EC, (EC.message() + ": " + FName).c_str());
DotFile << "digraph LayoutTypeSystem {\n";
DotFile << " // List of nodes\n";