|
@@ -29,6 +29,9 @@ interface
|
|
uses
|
|
uses
|
|
{$IFDEF Pas2JS}
|
|
{$IFDEF Pas2JS}
|
|
JS,
|
|
JS,
|
|
|
|
+ {$IFDEF NodeJS}
|
|
|
|
+ NodeJSFS,
|
|
|
|
+ {$ENDIF}
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
pas2jsutils,
|
|
pas2jsutils,
|
|
{$IFDEF HASFILESYSTEM}
|
|
{$IFDEF HASFILESYSTEM}
|
|
@@ -1072,7 +1075,7 @@ begin
|
|
if FOutputFile<>nil then exit;
|
|
if FOutputFile<>nil then exit;
|
|
if OutputFilename='' then
|
|
if OutputFilename='' then
|
|
raise Exception.Create('Log has empty OutputFilename');
|
|
raise Exception.Create('Log has empty OutputFilename');
|
|
- if DirectoryExists(OutputFilename) then
|
|
|
|
|
|
+ if DirectoryExists(OutputFilename) then
|
|
raise Exception.Create('Log is directory: "'+OutputFilename+'"');
|
|
raise Exception.Create('Log is directory: "'+OutputFilename+'"');
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
FOutputFile:=CreateTextWriter(OutputFileName);
|
|
FOutputFile:=CreateTextWriter(OutputFileName);
|