From 1123ca293cc077f205734aa1643f54719c5da939 Mon Sep 17 00:00:00 2001 From: Steve Daulton Date: Tue, 13 Jun 2017 17:49:16 +0100 Subject: [PATCH] More tweaks to Nyquist debug output --- src/effects/nyquist/Nyquist.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/effects/nyquist/Nyquist.cpp b/src/effects/nyquist/Nyquist.cpp index ea9bbb62b..cc75bd80e 100644 --- a/src/effects/nyquist/Nyquist.cpp +++ b/src/effects/nyquist/Nyquist.cpp @@ -1164,7 +1164,7 @@ bool NyquistEffect::ProcessOne() // If we're not showing debug window, log errors and warnings: if (!mDebugOutput.IsEmpty() && !mDebug && !mTrace) { /* i18n-hint: An effect "returned" a message.*/ - wxLogWarning(mName + wxT(" ") + _("returned:") + wxT("\n") + mDebugOutput); + wxLogMessage(wxT("\'") + mName + wxT("\' ") + _("returned:") + wxT("\n") + mDebugOutput); } // Audacity has no idea how long Nyquist processing will take, but @@ -1191,14 +1191,15 @@ bool NyquistEffect::ProcessOne() return false; } else { - wxLogWarning(wxT("Nyquist returned nyx_error.")); + wxLogMessage(wxT("Nyquist returned nyx_error.")); } return true; } if (rval == nyx_string) { - wxMessageBox(NyquistToWxString(nyx_get_string()), - mName, wxOK | wxCENTRE, mUIParent); + wxString msg = NyquistToWxString(nyx_get_string()); + if (!msg.IsEmpty()) // Not currently a documented feature, but could be useful as a No-Op. + wxMessageBox(msg, mName, wxOK | wxCENTRE, mUIParent); // True if not process type. // If not returning audio from process effect,