This commit is contained in:
Sebastian Luberriaga
2016-12-07 16:54:35 -03:00
parent 26d1567d52
commit ce3b8f0ae6
@@ -157,8 +157,8 @@ class NfcReactNativeModule extends ReactContextBaseJavaModule implements Activit
} catch (Exception ex) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
this.tagPromise.reject(sw.toString());
ex.printStackTrace(new PrintWriter(sw));
this.tagPromise.reject(sw.toString(), ex.getMessage());
} finally {
this.operation = OP_NOT_READY;
}