Update ErrorMsg with optional target_style string for one style

Applied to master or to target style
This commit is contained in:
Clemens Schwaighofer
2023-09-15 18:22:38 +09:00
parent de0ed058ca
commit fe459aec80
7 changed files with 70 additions and 50 deletions

View File

@@ -40,6 +40,7 @@ print "NU: " . ml::fromValue(100)->name . "<br>";
print "NU: " . ml::fromValue(1000)->name . "<br>";
$em->setErrorMsg('123', 'error', 'msg this is bad, not logged');
$em->setErrorMsg('123', 'error', 'msg this is bad, not logged', 'target-id', 'other-style');
$em->setErrorMsg('123', 'error', 'msg this is bad, logged', log_error:true);
$em->setErrorMsg('1000', 'info', 'This is good');
$em->setErrorMsg('9999', 'abort', 'BAD: This is critical (abort)');