Skip to content

Commit

Permalink
added an explicit err msg for the expected syntax of generate_minidump
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Aug 27, 2023
1 parent a37f8b8 commit 0ed8e2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/python/src/udmp_parser_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ void udmp_parser_utils_module(nb::module_ &m) {
return false;
}

const auto a0 = nb::str(nb::handle(argv[0]));
if (argv.size() != 3) {
nb::print(nb::str("Syntax\n\t{} PID OutputDumpFile.dmp").format(a0));
return false;
}

Expand Down

0 comments on commit 0ed8e2d

Please sign in to comment.