vhdlpp: Corrected error messages.

This commit is contained in:
Maciej Suminski 2015-11-24 15:29:18 +01:00
parent 2f40c96527
commit 5535b7d26c
1 changed files with 3 additions and 3 deletions

View File

@ -1239,7 +1239,7 @@ file_declaration
: K_file identifier_list ':' IDENTIFIER ';'
{
if (strcasecmp($4, "TEXT"))
errormsg(@1, "file declaration expected TEXT type\n");
sorrymsg(@1, "file declaration currently handles only TEXT type.\n");
for (std::list<perm_string>::iterator cur = $2->begin()
; cur != $2->end() ; ++cur) {
@ -1893,10 +1893,10 @@ primary
else if(!strcasecmp($2, "fs"))
unit = ExpTime::FS;
else
errormsg(@2, "Invalid time unit (accepted are fs, ps, ns, us, ms, s).");
errormsg(@2, "Invalid time unit (accepted are fs, ps, ns, us, ms, s).\n");
if($1 < 0)
errormsg(@1, "Time cannot be negative.");
errormsg(@1, "Time cannot be negative.\n");
ExpTime*tmp = new ExpTime($1, unit);
FILE_NAME(tmp, @1);