Browse Source

* check for css-file existance

git-svn-id: trunk@13805 -
marco 16 years ago
parent
commit
9764ea95d1
1 changed files with 5 additions and 0 deletions
  1. 5 0
      utils/fpdoc/dw_htmlchm.inc

+ 5 - 0
utils/fpdoc/dw_htmlchm.inc

@@ -47,6 +47,11 @@ begin
   
   if FCSSFile <> '' then
   begin
+    if not FileExists(FCSSFile) Then
+      begin
+        Writeln(stderr,'Can''t find CSS file "',FCSSFILE,'"');
+        halt(1);
+      end;
     TempStream := TMemoryStream.Create;
     TempStream.LoadFromFile(FCSSFile);
     TempStream.Position := 0;