forked from qt-creator/qt-creator
Some more fixes to exception handling in bauhaus
Reviewed-by: thomas hartmann
This commit is contained in:
@@ -106,8 +106,10 @@ void DocumentWarningWidget::setError(const RewriterView::Error &error)
|
||||
QString str;
|
||||
if (error.type() == RewriterView::Error::ParseError) {
|
||||
str = tr("%3 (%1:%2)").arg(QString::number(error.line()), QString::number(error.column()), error.description());
|
||||
m_goToError->show();
|
||||
} else if (error.type() == RewriterView::Error::InternalError) {
|
||||
str = tr("Internal error (%1)") .arg(error.description());
|
||||
str = tr("Internal error (%1)").arg(error.description());
|
||||
m_goToError->hide();
|
||||
}
|
||||
|
||||
m_errorMessage->setText(str);
|
||||
|
||||
Reference in New Issue
Block a user