Error.message property in browser is incomplete

I have encountered a problem with the “message” property of the “Error” class.

The problem consists in the difference of the message text between the Flash Player of the Flash program and the Flash Player of the browser.

I am using the “try, catch” statement to catch en error and afterward I display the “message” property of the error in a text field.

In the Flash program, the text field displays the full error message, something like:

Error #1085: The element type "something" must be terminated by the matching end-tag "</something>".

But in the browser, it only displays the code, not the description of it as well:

Error #1085

Is this an error ? Is there a way to go around this ?