title: How to get error message in NativeScript 5?
body: <p>Could help me. How to get Error message in NativeScript 5 ?</p>
  
  <pre><code>try {
      devices = getDeviceList();
    } catch (error) {
      console.log(error.message);
    }
  </code></pre>
  
  <p>This code write to console</p>
  
  <blockquote>
    <p>'org.nativescript.b360124.serailport.NSSerialport$NSSerialPortException:
    Device not found! JS:<br>
    org.nativescript.b360124.serailport.NSSerialport.getDeviceList(NSSerialport.java:66)
    JS:     com.tns.Runtime.callJSMethodNative(Native Method) JS:<br>
    com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1120) JS:<br>
    com.tns.Runtime.callJSMethodImpl(Runtime.java:1000) JS:<br>
    com.tns.Runtime.callJSMethod(Runtime.java:987) JS:<br>
    com.tns.Runtime.callJSMethod(Runtime.java:967) JS:<br>
    com.tns.Runtime.callJSMethod(Runtime.java:959)</p>
  </blockquote>
  
  <p>And how get message  "Device not found!", Thanks.</p>