mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-23 17:47:04 +00:00
197ab42bd2
The catch had been introduced in953fb41c82, seemingly to catch the case PSERROR_Scripting_LoadFile_OpenFailed from1e40ed1543which was removed in4b1297b328, refs D2363. The LoadGlobalScript and LoadGlobalScriptFile functions don't throw these errors unless that JS code calls broken C++ code throwing that. In that case catching the error and continuing like nothing happened leads to subsequent segfaults and similarly severe errors caused by C++, not XML. Differential Revision: https://code.wildfiregames.com/D2366 Tested on: clang 9.0.0, gcc 9.2.0, Jenkins/vs2015 Accepted By: nani This was SVN commit r23068.