@@ -40,8 +40,7 @@ bool errorInExceptionHeader(const std::string &fileWhereErrorFound) {
4040}
4141
4242[[nodiscard]]ErrorInfo getErrorInfo (const  fs::path &path) {
43-     if  (Paths::errorFileExists (path, " uncaught_exception" 
44-         Paths::errorFileExists (path, " unexpected_exception" 
43+     if  (Paths::errorFileExists (path, " uncaught_exception" Paths::errorFileExists (path, " unexpected_exception" 
4544        return  {ErrorType::EXCEPTION_THROWN};
4645    }
4746    if  (Paths::errorFileExists (path, " ptr" 
@@ -55,25 +54,11 @@ bool errorInExceptionHeader(const std::string &fileWhereErrorFound) {
5554        }
5655    }
5756    if  (Paths::errorFileExists (path, " assert" 
58-         ErrorInfo errorInfo;
59-         errorInfo.errorType  = ErrorType::ASSERTION_FAILURE;
6057        fs::path errorFilePath = Paths::replaceExtension (path, " .assert.err" 
61-         errorInfo. failureBody  =  getTypeOfError (errorFilePath); 
62-         errorInfo. fileWithFailure  =  getFileErrorFound (errorFilePath); 
63-         errorInfo. lineWithFailure  =  getLineErrorFound (errorFilePath); 
64-         return  errorInfo ;
58+         return  {ErrorType::ASSERTION_FAILURE, 
59+                  getTypeOfError (errorFilePath), 
60+                  getFileErrorFound (errorFilePath), 
61+                  getLineErrorFound (errorFilePath)} ;
6562    }
6663    return  {ErrorType::NO_ERROR};
6764}
68- 
69- // [[nodiscard]]ErrorInfo hasFailedAssert(const fs::path& path) {
70- //     ErrorInfo errorInfo;
71- //     if (Paths::errorFileExists(path, "assert")) {
72- //         errorInfo.errorType = ErrorType::ASSERTION_FAILURE;
73- //         fs::path errorFilePath = Paths::replaceExtension(path, ".assert.err");
74- //         errorInfo.assertBody = getTypeOfError(errorFilePath);
75- //         errorInfo.fileWithFailure = getFileErrorFound(errorFilePath);
76- //         errorInfo.lineWithFailure = getLineErrorFound(errorFilePath);
77- //     }
78- //     return errorInfo;
79- // }
0 commit comments