Skip to content

Commit 0a22213

Browse files
committed
[QMS-624] Catch exception properly
1 parent fd80076 commit 0a22213

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/qmapshack/gis/rte/router/CRouterBRouter.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,12 @@ int CRouterBRouter::synchronousRequest(const QVector<QPointF>& points, const QLi
383383
} catch (const QString& msg) {
384384
coords.clear();
385385
if (!msg.isEmpty()) {
386+
CCanvas* canvas = CMainWindow::self().getVisibleCanvas();
387+
if (canvas) {
388+
canvas->reportStatus("BRouter", tr("<b>BRouter</b><br/>Bad response from server:<br/>%1").arg(msg));
389+
}
390+
timerCloseStatusMsg->start();
386391
reply->deleteLater();
387-
mutex.unlock();
388-
throw tr("Bad response from server: %1").arg(msg);
389392
}
390393
}
391394

0 commit comments

Comments
 (0)