Skip to content

Commit

Permalink
Fix typo in gadgetlib2 error handling
Browse files Browse the repository at this point in the history
Correct error message and comment format

Signed-off-by: Dan Middleton <[email protected]>
  • Loading branch information
dcmiddle authored and madars committed Mar 29, 2020
1 parent b74fdf9 commit 1ff6843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libsnark/gadgetlib2/infrastructure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ long safeConvert(const int64_t num) {
}

/*****************************************************************************/
/*********************** ErrorHandling********** ****************************/
/*********************** Error Handling *************************************/
/*****************************************************************************/

/*
Expand All @@ -69,7 +69,7 @@ void ErrorHandling::fatalError(const ::std::string& msg) {
throw ::std::runtime_error(msg);
# else // not DEBUG
libff::UNUSED(msg);
const ::std::string releaseMsg("Fatal error encoutered. Run debug build for more"
const ::std::string releaseMsg("Fatal error encountered. Run debug build for more"
" information and stack trace.");
::std::cerr << "ERROR: " << releaseMsg << ::std::endl << ::std::endl;
throw ::std::runtime_error(releaseMsg);
Expand Down

0 comments on commit 1ff6843

Please sign in to comment.