Fix invalid string format

This commit is contained in:
Sebastián Katzer 2017-01-30 09:41:45 +01:00
parent 4b31ee3097
commit d132215100

View File

@ -78,7 +78,7 @@ public class BackgroundMode extends CordovaPlugin {
@Override @Override
public void onServiceDisconnected(ComponentName name) { 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); context.startService(intent);
} catch (Exception e) { } catch (Exception e) {
fireEvent(Event.FAILURE, e.getMessage()); fireEvent(Event.FAILURE, String.format("'%s'", e.getMessage()));
} }
isBind = true; isBind = true;