From d132215100eb5c1fda7802debd703bbae16778df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Mon, 30 Jan 2017 09:41:45 +0100 Subject: [PATCH] Fix invalid string format --- src/android/BackgroundMode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/android/BackgroundMode.java b/src/android/BackgroundMode.java index 350727c..ad4485d 100644 --- a/src/android/BackgroundMode.java +++ b/src/android/BackgroundMode.java @@ -78,7 +78,7 @@ public class BackgroundMode extends CordovaPlugin { @Override public void onServiceDisconnected(ComponentName name) { - fireEvent(Event.FAILURE, "service disconnected"); + fireEvent(Event.FAILURE, "'service disconnected'"); } }; @@ -278,7 +278,7 @@ public class BackgroundMode extends CordovaPlugin { context.startService(intent); } catch (Exception e) { - fireEvent(Event.FAILURE, e.getMessage()); + fireEvent(Event.FAILURE, String.format("'%s'", e.getMessage())); } isBind = true;