Fix error management

This commit is contained in:
Laurent Destailleur
2023-11-29 23:07:29 +01:00
parent d809825c21
commit b3c4697c7d
2 changed files with 4 additions and 4 deletions

View File

@@ -7604,7 +7604,7 @@ function dol_htmlwithnojs($stringtoencode, $nouseofiframesandbox = 0, $check = '
} catch (Exception $e) {
// If error, invalid HTML string with no way to clean it
//print $e->getMessage();
$out = 'InvalidHTMLStringCantBeCleaned';
$out = 'InvalidHTMLStringCantBeCleaned '.$e->getMessage();
}
}
@@ -7640,7 +7640,7 @@ function dol_htmlwithnojs($stringtoencode, $nouseofiframesandbox = 0, $check = '
} catch (Exception $e) {
// If error, invalid HTML string with no way to clean it
//print $e->getMessage();
$out = 'InvalidHTMLStringCantBeCleaned';
$out = 'InvalidHTMLStringCantBeCleaned '.$e->getMessage();
}
}