Emscripten instead of errors returns to JS pointer to error. To get meaningful message we need to pass this pointer back to C++, read value from it and return error.what() as string.
Details
Details
- Reviewers
tomek michal marcin - Commits
- rCOMMc2b8eac55a57: [WASM] improve error logging
- Add this code auto x = SQLiteQueryExecutor::getStorage().get<Draft>("123"); and check if error from ORM is visible:
- Add this code throw std::runtime_error("TEST ERROR"); and check if error is visible:
- Use null pointer
- User not existing pointer
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable