diff --git a/tpl/think_exception.tpl b/tpl/think_exception.tpl index 5d397284..4e46f6ee 100644 --- a/tpl/think_exception.tpl +++ b/tpl/think_exception.tpl @@ -253,8 +253,10 @@ echo htmlentities(json_encode($val, JSON_PRETTY_PRINT)); } else if(is_bool($val)) { echo $val ? 'true' : 'false'; - } else { + } else if(is_scalar($val)) { echo htmlentities($val); + } else { + echo 'Resource'; } ?>