| 98 | }; |
| 99 | |
| 100 | static std::string FormatScriptError(ScriptError err) { |
| 101 | for (const auto &se : script_errors) { |
| 102 | if (se.err == err) { |
| 103 | return se.name; |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | BOOST_ERROR("Unknown scripterror enumeration value, update script_errors " |
| 108 | "in script_tests.cpp."); |
| 109 | return ""; |
| 110 | } |
| 111 | |
| 112 | static ScriptError ParseScriptError(const std::string &name) { |
| 113 | for (const auto &se : script_errors) { |