From aa33aa6d4f5858de94c5353dfb9370f59c3cbf6f Mon Sep 17 00:00:00 2001 From: hide_d Date: Fri, 29 Jun 2018 00:30:05 +0900 Subject: [PATCH] =?UTF-8?q?Json=20=EC=97=90=EB=9F=AC=EC=8B=9C=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=20=ED=91=9C=EA=B8=B0=ED=95=98=EB=8F=84=EB=A1=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sammo/WebUtil.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/sammo/WebUtil.php b/src/sammo/WebUtil.php index 05f77318..a97f0a98 100644 --- a/src/sammo/WebUtil.php +++ b/src/sammo/WebUtil.php @@ -65,22 +65,22 @@ class WebUtil //Use a switch statement to figure out the exact error. switch ($jsonError) { case JSON_ERROR_DEPTH: - $error .= 'Maximum depth exceeded!'; + $error .= 'Maximum depth exceeded! : '.$content; break; case JSON_ERROR_STATE_MISMATCH: - $error .= 'Underflow or the modes mismatch!'; + $error .= 'Underflow or the modes mismatch! : '.$content; break; case JSON_ERROR_CTRL_CHAR: - $error .= 'Unexpected control character found'; + $error .= 'Unexpected control character found : '.$content; break; case JSON_ERROR_SYNTAX: - $error .= 'Malformed JSON'; + $error .= 'Malformed JSON : '.$content; break; case JSON_ERROR_UTF8: - $error .= 'Malformed UTF-8 characters found!'; + $error .= 'Malformed UTF-8 characters found! : '.$content; break; default: - $error .= 'Unknown error!'; + $error .= 'Unknown error! : '.$content; break; } throw new \Exception($error);