Ignore errors in write_stdout

Fixes #2418
This commit is contained in:
Maxime Coste 2018-09-23 17:16:09 +10:00
parent fa993768da
commit 5d0ea2936d

View File

@ -89,7 +89,7 @@ struct startup_error : runtime_error
using runtime_error::runtime_error;
};
inline void write_stdout(StringView str) { write(1, str); }
inline void write_stdout(StringView str) { try { write(1, str); } catch (runtime_error&) {} }
inline void write_stderr(StringView str) { try { write(2, str); } catch (runtime_error&) {} }
String runtime_directory()