Author Topic: HTML formated error in console  (Read 3472 times)

Offline David Serrano

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 503
HTML formated error in console
« on: 2008 September 12 13:34:31 »
Hi,

When an image is being used by a dynamic process,  it is "busy" and little can be done with it. Usually a dialog appears to inform the user about this. But when trying to perform an operation on the image from a script, the error appears on the processing console with some surrounding HTML markup:

Code: [Select]
*** Error [000]: /home/hue/ll/lang/js/foo.js, line 97: <p style="white-space:pre;">image1</p><p style="white-space:pre;">The view is being used by an active dynamic interface.</p>

The message would be more user friendly if were presented in a dialog, or plain text in the console:

Code: [Select]
*** Error [000]: /home/hue/ll/lang/js/foo.js, line 97: image1: The view is being used by an active dynamic interface.
--
 David Serrano

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
HTML formated error in console
« Reply #1 on: 2008 September 15 14:56:15 »
Hi David,

Yes, you're right. Currently, when a tag (something between '<' and '>') isn't recognized by the console, it is written literally. The correct behavior would be to silently eat unknown/invalid tags, so they'd have no effect. This will be fixed in the next version.

Add one more to your account ;)
Juan Conejero
PixInsight Development Team
http://pixinsight.com/