8 Replies Latest reply on Jun 14, 2013 12:14 AM by Gerbrand Stap

    Capture error from System.open_url()

    Gerbrand Stap

      When I try to open a file using System.open_url, but this could not be done because there is no application to open it, I get the following error in my log:

      E 05/06/2013 11:12:55:442 00001438  SystemImpl.cpp: 736| Cannot execute: [filename];Error: 1155


      This error can not be captured using begin-rescue and the function always returns nil. So how do I notify the user that it was not possible to open the file?

      I'm experiencing this behaviour on the RhoSimulator, and I'm assuming that this will work the same on Android and iOS, but I haven't tested on other platforms.