Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid parse errors getting dropped #21862

Merged
merged 1 commit into from
Aug 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion framework/src/parser/Parser.C
Original file line number Diff line number Diff line change
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