Menu

#11 More Detailed Error Message

open
nobody
None
5
2003-05-01
2003-05-01
Anonymous
No

on line 149/150:

If you change:
$htmlValue = "<code class=\"$class\">"
. htmlspecialchars($translateValue)
. "</code>";

to:
$htmlValue = "<code class=\"$class\">"
. strtoupper($class) . ": "
. htmlspecialchars($translateValue)
. "</code>";

it will print out EXPECTED: and ACTUAL: before the
erroneous values. It makes it more readable.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.