Skip to content

Commit

Permalink
Refine the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
nv-hwoo committed Sep 5, 2023
1 parent 3f95dca commit a9cc84b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/c++/perf_analyzer/test_command_line_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1614,9 +1614,10 @@ TEST_CASE("Testing Command Line Parser")

if (check_params) {
if (act == nullptr) {
std::cerr << "Error: Attempting to access a null pointer `act` will lead "
"to undefined behavior. Terminating the test."
<< std::endl;
std::cerr
<< "Error: Attempting to access `act` but was not initialized. Check "
"if the test cases are missing `check_params = false` statement."
<< std::endl;
exit(1);
}
CHECK_PARAMS(act, exp);
Expand Down

0 comments on commit a9cc84b

Please sign in to comment.