diff --git a/livesupport/src/products/gLiveSupport/src/SearchWindow.cxx b/livesupport/src/products/gLiveSupport/src/SearchWindow.cxx index 89d3db04a..ea4d6b409 100644 --- a/livesupport/src/products/gLiveSupport/src/SearchWindow.cxx +++ b/livesupport/src/products/gLiveSupport/src/SearchWindow.cxx @@ -703,8 +703,10 @@ SearchWindow :: onAddToScratchpad(void) throw () try { gLiveSupport->addToScratchpad(playable); } catch (XmlRpcException &e) { - std::cerr << "error in SearchWindow::onAddToScratchpad(): " - << e.what() << std::endl; + Ptr::Ref errorMessage(new Glib::ustring( + "error in SearchWindow::onAddToScratchpad(): ")); + errorMessage->append(e.what()); + gLiveSupport->displayMessageWindow(errorMessage); } } } @@ -724,12 +726,14 @@ SearchWindow :: onAddToLiveMode(void) throw () if (iter) { Ptr::Ref playable = (*iter)[modelColumns.playableColumn]; if (playable) { - gLiveSupport->addToLiveMode(playable); try { gLiveSupport->addToScratchpad(playable); + gLiveSupport->addToLiveMode(playable); } catch (XmlRpcException &e) { - std::cerr << "error in SearchWindow::onAddToLiveMode(): " - << e.what() << std::endl; + Ptr::Ref errorMessage(new Glib::ustring( + "error in SearchWindow::onAddToLiveMode(): ")); + errorMessage->append(e.what()); + gLiveSupport->displayMessageWindow(errorMessage); } } }