Revolution Message Box

As of Revolution 4.0 the Message Box does not print out hints when reporting errors. You should be aware of this when executing RevTalk that makes calls to SQL Yoga.

Default Message Box Behavior

Default Message Box Behavior

In this example I am passing an invalid property name to sqlquery_set (1). The Message Box merely reports that object does not have this property (2).

Printing Additional Information

Printing Additional Information

One workaround for this behavior is to wrap your code in a try/catch block. This will print out the entire error, including the hint. Notice how I can now see the hint invalid SQL Query object property 'bad_prop_name'.

This makes troubleshooting easier when working with the Message Box.

0 Comments

Add your comment

E-Mail me when someone replies to this comment