Sfoglia il codice sorgente

模版解析错误输出错误信息到浏览器

visuddhinanda 2 anni fa
parent
commit
f128d5f98c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/Http/Api/MdRender.php

+ 1 - 1
app/Http/Api/MdRender.php

@@ -99,7 +99,7 @@ class MdRender{
             $dom = simplexml_load_string($xml);
         }catch(\Exception $e){
             Log::error($e);
-            return "<span>xml解析错误</span>";
+            return "<span>xml解析错误{$e}</span>";
         }