From 0436b83a22075a17cf327b11d0d21168102cb064 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sat, 21 Jul 2018 08:58:23 -0500 Subject: [PATCH] Added ostream version of error --- xs/src/libslic3r/Log.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xs/src/libslic3r/Log.hpp b/xs/src/libslic3r/Log.hpp index d96dfa12a..353e23d50 100644 --- a/xs/src/libslic3r/Log.hpp +++ b/xs/src/libslic3r/Log.hpp @@ -50,7 +50,10 @@ public: std::cerr << topic << " DEBUG" << ": "; std::cerr << message << std::endl; } - + static std::ostream& error(std::string topic) { + std::cerr << topic << " ERR" << ": "; + return std::cerr; + } static std::ostream& debug(std::string topic) { std::cerr << topic << " DEBUG" << ": "; return std::cerr;