diff --git a/src/mg/PAGI/Node/Node.php b/src/mg/PAGI/Node/Node.php index 67b03b4..e5ab390 100644 --- a/src/mg/PAGI/Node/Node.php +++ b/src/mg/PAGI/Node/Node.php @@ -505,10 +505,10 @@ public function validate() foreach ($onError as $msg) { $this->addPrePromptMessage($msg); } + } else if (is_string($onError)) { + $this->addPrePromptMessage($onError); } else { - if (is_string($onError)) { - $this->addPrePromptMessage($onError); - } + $this->logDebug("Ignoring validation sound: " . print_r($onError, true)); } return false; }