Bug #2378

page.err(err) doesn't display error if it comes from catch (api v1 duktape)

Added by Leonid Protasov over 6 years ago. Updated over 6 years ago.

Status:FixedStart date:11/17/2014
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

Category:API
Target version:4.8
Found in version:4.7.496 Platform:Linux

Description

        try {
            var doc = showtime.JSONDecode(showtime.httpReq('https://api.dropbox.com/1/metadata/dropbox/?access_token=7FQGw39mXvAAAAAAAAAEF4eOz5bsW9r1ClL0WjNGBOTnO9SrBO9Bg-VDGatR6WnJ');
        } catch(err) {
            page.error(err);
            return;
        }


Works properly on spidermonkey.

Associated revisions

Revision 8c793875
Added by Andreas Smas over 6 years ago

ecamscript/page: Make sure page.error() converts message to a string

Fixes #2378

Change included in version 4.7.498

History

#1 Updated by Andreas Smas over 6 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Also available in: Atom PDF