mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
tex2lyx does not use LYXERR, but basic cerr stream
This commit is contained in:
parent
354f76ef67
commit
3a985a228c
@ -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,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();
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user