diff options
-rw-r--r-- | tester/covoar/Explanations.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tester/covoar/Explanations.cc b/tester/covoar/Explanations.cc index 7b0f95a..12bd809 100644 --- a/tester/covoar/Explanations.cc +++ b/tester/covoar/Explanations.cc @@ -140,10 +140,10 @@ done: return; notFoundFile = fopen( fileName, "w" ); - if (!fileName) { + if (notFoundFile == nullptr) { std::ostringstream what; what << "Unable to open " << fileName - << "out of sync at the explanation"; + << " out of sync at the explanation"; throw rld::error( what, "Explanations::writeNotFound" ); } |