mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
DLATypeSystem.cpp: improve error reporting
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user