Skip to content
Snippets Groups Projects
Commit b279ca13 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Added error message.

Rev: tutorial/Wmml.pmod:1.27
parent 6b8a756f
No related branches found
No related tags found
No related merge requests found
...@@ -611,9 +611,14 @@ SGML low_make_concrete_wmml(SGML data) ...@@ -611,9 +611,14 @@ SGML low_make_concrete_wmml(SGML data)
{ {
string filename=tag->params->file; string filename=tag->params->file;
string file=Stdio.read_file(filename); string file=Stdio.read_file(filename);
SGML tmp=group(lex(file,filename)); if (file) {
verify(tmp,file,filename); SGML tmp=group(lex(file,filename));
ret+=low_make_concrete_wmml(tmp); verify(tmp,file,filename);
ret+=low_make_concrete_wmml(tmp);
} else {
werror(sprintf("File %O not found specified in tag %O near %s\n",
filename, tag->tag, tag->location()));
}
continue; continue;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment