diff --git a/tpl/think_exception.tpl b/tpl/think_exception.tpl index 2262fb91..5d397284 100644 --- a/tpl/think_exception.tpl +++ b/tpl/think_exception.tpl @@ -286,8 +286,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'; } ?>