diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-07 01:02:46 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-07 01:02:46 -0800 |
commit | 6788c2710f827648a0c2a55d3002c8e3b6ba5564 (patch) | |
tree | 8dd1c6fe4cf51c440c65d47ec69e88496dbd8e03 /builtin.cpp | |
parent | ed7c10f36666d6571c2399d507766e9fa3aad6c9 (diff) |
Improved error reporting for builtin_test
Diffstat (limited to 'builtin.cpp')
-rw-r--r-- | builtin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin.cpp b/builtin.cpp index 872ba490..3a61d16f 100644 --- a/builtin.cpp +++ b/builtin.cpp @@ -129,6 +129,10 @@ const wcstring &get_stderr_buffer() { return stderr_buffer; } +void builtin_show_error(const wcstring &err) { + ASSERT_IS_MAIN_THREAD(); + stderr_buffer.append(err); +} /** Stack containing builtin I/O for recursive builtin calls. |