Some more fixes to exception handling in bauhaus

Reviewed-by: thomas hartmann
This commit is contained in:
Lasse Holmstedt
2010-04-12 12:29:13 +02:00
parent 0f7db6decd
commit 65a30b06af
5 changed files with 17 additions and 4 deletions

View File

@@ -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);