소스 검색

* Console log changed to error in case of exception

Michael Van Canneyt 1 년 전
부모
커밋
8770967f35
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/wasi/src/wasienv.pas

+ 1 - 1
packages/wasi/src/wasienv.pas

@@ -527,7 +527,7 @@ begin
       end;
       end;
   end;
   end;
   if FPreparedStartDescriptor.RunExceptionClass<>'' then
   if FPreparedStartDescriptor.RunExceptionClass<>'' then
-    Console.log('Running Webassembly resulted in exception. Exception class: ',FPreparedStartDescriptor.RunExceptionClass,', message:',FPreparedStartDescriptor.RunExceptionMessage);
+    Console.error('Running Webassembly resulted in exception. Exception class: ',FPreparedStartDescriptor.RunExceptionClass,', message:',FPreparedStartDescriptor.RunExceptionMessage);
 end;
 end;
 
 
 procedure TWASIHost.DoStdWrite(Sender: TObject; const aOutput: String);
 procedure TWASIHost.DoStdWrite(Sender: TObject; const aOutput: String);