check for empty word/expression in keyType and wordRe IO

This commit is contained in:
Mark Olesen
2009-08-09 09:58:00 +02:00
parent bdbdd25bac
commit 77b2fecc7f
10 changed files with 32 additions and 11 deletions

View File

@ -55,7 +55,7 @@ Foam::Istream& Foam::operator>>(Istream& is, string& s)
{
is.setBad();
FatalIOErrorIn("operator>>(Istream&, string&)", is)
<< "wrong token type - expected string found " << t.info()
<< "wrong token type - expected string, found " << t.info()
<< exit(FatalIOError);
return is;