Mercurial > hg > orthanc-stone
diff Platforms/Wasm/WasmPlatformApplicationAdapter.cpp @ 322:a902a07769d4 am-2
wip: preload slice
author | am@osimis.io |
---|---|
date | Mon, 15 Oct 2018 22:43:02 +0200 |
parents | daa04d15192c |
children | 5055031f4a06 |
line wrap: on
line diff
--- a/Platforms/Wasm/WasmPlatformApplicationAdapter.cpp Fri Oct 12 14:53:38 2018 +0200 +++ b/Platforms/Wasm/WasmPlatformApplicationAdapter.cpp Mon Oct 15 22:43:02 2018 +0200 @@ -38,9 +38,14 @@ void WasmPlatformApplicationAdapter::NotifyStatusUpdateFromCppToWeb(const std::string& statusUpdateMessage) { - printf("NotifyStatusUpdateFromCppToWeb (TODO)\n"); - UpdateStoneApplicationStatusFromCpp(statusUpdateMessage.c_str()); - printf("NotifyStatusUpdateFromCppToWeb (DONE)\n"); + try + { + UpdateStoneApplicationStatusFromCpp(statusUpdateMessage.c_str()); + } + catch (...) + { + printf("Error while handling message to web\n"); + } } } \ No newline at end of file