From b279ca1377d8da0bf23b9b9b10add8e7402719ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sun, 13 Jun 1999 20:16:58 +0200 Subject: [PATCH] Added error message. Rev: tutorial/Wmml.pmod:1.27 --- tutorial/Wmml.pmod | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tutorial/Wmml.pmod b/tutorial/Wmml.pmod index ebc71b6448..020a1ad4f7 100644 --- a/tutorial/Wmml.pmod +++ b/tutorial/Wmml.pmod @@ -611,9 +611,14 @@ SGML low_make_concrete_wmml(SGML data) { string filename=tag->params->file; string file=Stdio.read_file(filename); - SGML tmp=group(lex(file,filename)); - verify(tmp,file,filename); - ret+=low_make_concrete_wmml(tmp); + if (file) { + SGML tmp=group(lex(file,filename)); + 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; } -- GitLab