tex2lyx does not use LYXERR, but basic cerr stream

This commit is contained in:
Jean-Marc Lasgouttes 2013-05-31 11:37:55 +02:00
parent 354f76ef67
commit 3a985a228c
2 changed files with 6 additions and 10 deletions

View File

@ -10,13 +10,11 @@
#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,7 +31,7 @@ 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
cerr << "Assertion triggered in " << function
<< " by failing check \"" << expr << "\""
<< " in file " << file << ":" << line << endl;
::abort();

View 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;
}
}
}