| 114 | } |
| 115 | |
| 116 | std::string |
| 117 | ScriptError::msg () const |
| 118 | { |
| 119 | std::string m = basic_msg (); |
| 120 | |
| 121 | if (! m_context.empty ()) { |
| 122 | m += tl::to_string (tr (" in ")) + m_context; |
| 123 | } |
| 124 | |
| 125 | for (std::vector<BacktraceElement>::const_iterator bt = backtrace ().begin (); bt != backtrace ().end (); ++bt) { |
| 126 | m += "\n "; |
| 127 | m += bt->to_string (); |
| 128 | } |
| 129 | |
| 130 | return m; |
| 131 | } |
| 132 | |
| 133 | void |
| 134 | ScriptError::translate_includes () |