added file/line diagnostics when functionEntry fails

- got hit by spacing error and it took too long to pinpoint the problem:

  #include "XXX"   <- okay
  # include "XXX"  <- wrong!
This commit is contained in:
Mark Olesen
2009-07-30 13:56:30 +02:00
parent f763b00d08
commit c33e084d09

View File

@ -81,7 +81,8 @@ bool Foam::functionEntry::execute
(
"functionEntry::execute"
"(const word& functionName, dictionary& parentDict, Istream&)"
) << "Unknown functionEntry " << functionName
) << "Unknown functionEntry '" << functionName
<< "' in " << is.name() << " near line " << is.lineNumber()
<< endl << endl
<< "Valid functionEntries are :" << endl
<< executedictionaryIstreamMemberFunctionTablePtr_->toc()
@ -126,7 +127,8 @@ bool Foam::functionEntry::execute
(
"functionEntry::execute"
"(const word&, const dictionary&, primitiveEntry&, Istream&)"
) << "Unknown functionEntry " << functionName
) << "Unknown functionEntry '" << functionName
<< "' in " << is.name() << " near line " << is.lineNumber()
<< endl << endl
<< "Valid functionEntries are :" << endl
<< executeprimitiveEntryIstreamMemberFunctionTablePtr_->toc()