From: Soeren Apel Date: Fri, 23 Feb 2018 23:13:13 +0000 (+0100) Subject: Session: Add error messages X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=feeb4a7ea1a286d95bfb8d218b1b0ea3faf1604e;p=pulseview.git Session: Add error messages --- diff --git a/pv/session.cpp b/pv/session.cpp index 4d72af33..a9bb554e 100644 --- a/pv/session.cpp +++ b/pv/session.cpp @@ -352,8 +352,7 @@ void Session::select_device(shared_ptr device) else set_default_device(); } catch (const QString &e) { - main_bar_->session_error(tr("Failed to Select Device"), - tr("Failed to Select Device")); + main_bar_->session_error(tr("Failed to select device"), e); } } @@ -401,6 +400,7 @@ void Session::set_device(shared_ptr device) device_->open(); } catch (const QString &e) { device_.reset(); + main_bar_->session_error(tr("Failed to open device"), e); } if (device_) {