Skip to content

Commit

Permalink
[metacling] print to stderr before exiting
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdymercury authored Nov 15, 2024
1 parent a835230 commit 5772649
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/metacling/src/TCling.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1536,8 +1536,10 @@ TCling::TCling(const char *name, const char *title, const char* const argv[], vo
llvmResourceDir, extensions,
interpLibHandle);

if (!fInterpreter->getCI()) // Compiler instance could not be created. See https://its.cern.ch/jira/browse/ROOT-10239
exit(1);
if (!fInterpreter->getCI()) { // Compiler instance could not be created. See https://its.cern.ch/jira/browse/ROOT-10239
std::cerr << "Exiting now since compiler instance is not available." << std::endl;
exit(EXIT_FAILURE);
}
// Don't check whether modules' files exist.
fInterpreter->getCI()->getPreprocessorOpts().DisablePCHOrModuleValidation =
DisableValidationForModuleKind::All;
Expand Down

0 comments on commit 5772649

Please sign in to comment.