]> git.lyx.org Git - features.git/commitdiff
tex2lyx does not use LYXERR, but basic cerr stream
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 31 May 2013 09:37:55 +0000 (11:37 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 31 May 2013 09:38:41 +0000 (11:38 +0200)
src/tex2lyx/boost.cpp
src/tex2lyx/tex2lyx.cpp

index f1dad3061ba80696e1d2de25f76b3e4d885bfec1..0e0a65dc9b9b3ce992ab02737c8d695ae317feb8 100644 (file)
 
 #include <config.h>
 
-#include "support/debug.h"
-
 #include <boost/assert.hpp>
 
 #include <cstdlib>
 #include <exception>
-#include <ostream>
+#include <iostream>
 
 using namespace std;
 
@@ -24,7 +22,7 @@ namespace boost {
 
 void throw_exception(std::exception const & e)
 {
-       lyx::lyxerr << "Exception caught:\n"
+       cerr << "Exception caught:\n"
               << e.what() << endl;
        BOOST_ASSERT(false);
 }
@@ -33,9 +31,9 @@ void throw_exception(std::exception const & e)
 void assertion_failed(char const * expr, char const * function,
                      char const * file, long line)
 {
-       lyx::lyxerr << "Assertion triggered in " << function
-              << " by failing check \"" << expr << "\""
-              << " in file " << file << ":" << line << endl;
+       cerr << "Assertion triggered in " << function
+           << " by failing check \"" << expr << "\""
+           << " in file " << file << ":" << line << endl;
        ::abort();
 }
 
index f32ac84d14f506ec2541efadf9df9a23a87a96e0..6167798a0b975caa71d387d50340154f3f7a6b99 100644 (file)
@@ -25,7 +25,6 @@
 #include "TextClass.h"
 
 #include "support/convert.h"
-#include "support/debug.h"
 #include "support/ExceptionMessage.h"
 #include "support/filetools.h"
 #include "support/lassert.h"
@@ -54,8 +53,7 @@ namespace Alert {
        void warning(docstring const & title, docstring const & message,
                                 bool const &)
        {
-               LYXERR0(title);
-               LYXERR0(message);
+               cerr << to_utf8(title) << "\n" << to_utf8(message) << endl;
        }
 }
 }