Skip to content

Commit

Permalink
Solved issue #71.
Browse files Browse the repository at this point in the history
  • Loading branch information
WasiqB committed Oct 17, 2018
1 parent d9a7f22 commit f37f5e6
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public void checkServerRunning () {
*/
public D getDriver () {
final String msg = "Getting [%s] device driver...";
LOG.trace (String.format (msg, this.platform));
LOG.trace (format (msg, this.platform));
return this.driver;
}

Expand Down Expand Up @@ -194,7 +194,7 @@ public void stop () {
}
else {
final String message = "[%s] device driver already stopped...";
LOG.trace (String.format (message, this.platform));
LOG.trace (format (message, this.platform));
}
}

Expand Down Expand Up @@ -229,16 +229,17 @@ private void buildCapabilities () {
if (this.setting.isExternalApp ()) {
path = appPath;
}

final File file = new File (path);
if (!file.exists ()) {
final String msg = "App not found on mentioned location [%s]...";
LOG.error (String.format (msg, path));
fail (DeviceAppNotFoundError.class, String.format (msg, path));
LOG.error (format (msg, path));
fail (DeviceAppNotFoundError.class, format (msg, path));
}
appPath = path;
}
setCapability (APP, appPath, this.capabilities, true);
if (this.setting.isCloudApp () || appPath != null) {
setCapability (APP, appPath, this.capabilities, true);
}
}
LOG.trace ("Building Device capabilities completed...");
}
Expand Down

0 comments on commit f37f5e6

Please sign in to comment.