From 41fe3868a96e70869ca6e0e8d6f8672bc33f75a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Blot=20=28=40U-Exp=29?= Date: Fri, 12 Sep 2014 19:24:31 +0200 Subject: [PATCH] Another better error output --- controller/smscontroller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/smscontroller.php b/controller/smscontroller.php index 98a77c7..c76e02a 100644 --- a/controller/smscontroller.php +++ b/controller/smscontroller.php @@ -70,12 +70,12 @@ class SmsController extends Controller { } if (!is_numeric($sms["_id"])) { - $this->errorMsg = sprintf("Error: Invalid SMS ID '%s'", $sms["_id"]; + $this->errorMsg = sprintf("Error: Invalid SMS ID '%s'", $sms["_id"]); return false; } if ($sms["read"] !== "true" && $sms["read"] !== "false") { - $this->errorMsg = "Error: Invalid SMS Read state"; + $this->errorMsg = sprintf("Error: Invalid SMS Read state '%s'", $sms["read"]); return false; }