Skip to content

Commit

Permalink
Merge pull request idaholab#21862 from dschwen/parse_errors_21859
Browse files Browse the repository at this point in the history
Avoid parse errors getting dropped
  • Loading branch information
dschwen committed Aug 16, 2022
2 parents 8606aec + 8c57af5 commit c2579d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion framework/src/parser/Parser.C
Expand Up @@ -702,6 +702,10 @@ Parser::parse(const std::vector<std::string> & input_filenames)
for (auto & msg : bw.errors)
_errmsg += msg + "\n";

// Print parse errors related to brace expansion early
if (_errmsg.size() > 0)
mooseError(_errmsg);

// There are a few order dependent actions that have to be built first in
// order for the parser and application to function properly:
//
Expand Down Expand Up @@ -1482,7 +1486,7 @@ Parser::extractParams(const std::string & prefix, InputParameters & p)

// All of the parameters for this object have been extracted. See if there are any errors
if (!error_stream.str().empty())
mooseError(error_stream.str());
mooseError(_errmsg + error_stream.str());

// Here we will see if there are any auto build vectors that need to be created
std::map<std::string, std::pair<std::string, std::string>> auto_build_vectors =
Expand Down

0 comments on commit c2579d5

Please sign in to comment.