From 82411daaa18fc7394dc108a4cd95b8a3d28c96b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Gonz=C3=A1lez?= Date: Wed, 8 Mar 2017 08:59:34 +0100 Subject: [PATCH] Bug creating the error message --- lib/Less/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Less/Parser.php b/lib/Less/Parser.php index 2c9d8790..155c8e07 100644 --- a/lib/Less/Parser.php +++ b/lib/Less/Parser.php @@ -926,7 +926,7 @@ public function skipWhitespace($length){ public function expect($tok, $msg = NULL) { $result = $this->match( array($tok) ); if (!$result) { - $this->Error( $msg ? "Expected '" . $tok . "' got '" . $this->input[$this->pos] . "'" : $msg ); + $this->Error( !$msg ? "Expected '" . $tok . "' got '" . $this->input[$this->pos] . "'" : $msg ); } else { return $result; }