From 2d38d5f10fdced9225c6ceb14fa183689cd61442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santi=20Nore=C3=B1a?= Date: Thu, 9 May 2013 18:01:13 +0200 Subject: [PATCH] added error messages in text box --- src/libremediaserver.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/libremediaserver.cpp b/src/libremediaserver.cpp index 7105cb2..1f0a711 100644 --- a/src/libremediaserver.cpp +++ b/src/libremediaserver.cpp @@ -1689,11 +1689,14 @@ void libreMediaServer::stdout() { QByteArray out = m_pd_video->readAllStandardError(); if (out.size() < 7) {return;} out.chop(1); - if (out.indexOf("ola2pd: Can not read DMX!",0) != -1) - { + if (out.indexOf("ola2pd: Can not read DMX!",0) != -1) { ui.textEdit->appendPlainText("Can not read DMX data."); } else if(out.indexOf("ola2pd: Init complete",0) != -1) { - ui.textEdit->appendPlainText("Listening DMX."); + ui.textEdit->appendPlainText("Started DMX listening"); + } else if(out.indexOf("error: [fileselector] nothing found for",0) != -1) { + ui.textEdit->appendPlainText("Path to media tree not configured correctly"); + } else if(out.indexOf("fileselector: folder is greater than the number of folders",0) != -1) { + ui.textEdit->appendPlainText("Folder channels is greater than the number of folders"); } int j = out.indexOf("togui: ",0); if ((j >= 0) && (out.size() > (j+7)))