Skip to content

Commit 6ed9b48

Browse files
committed
fixes for LOC-6729
1 parent 3d60c44 commit 6ed9b48

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/browserstack/local/Local.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private void makeCommand(Map<String, String> options, String opCode) {
159159
if (IGNORE_KEYS.contains(parameter)) {
160160
continue;
161161
}
162-
if (avoidValueParameters.get(parameter) != null && opt.getValue().trim().toLowerCase() != "false") {
162+
if (avoidValueParameters.get(parameter) != null && !"false".equals(opt.getValue().trim().toLowerCase())) {
163163
command.add(avoidValueParameters.get(parameter));
164164
} else {
165165
if (parameters.get(parameter) != null) {

src/main/java/com/browserstack/local/LocalBinary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ private void fetchSourceUrl() throws LocalException {
214214
inputParams.put("auth_token", this.key);
215215
if (fallbackEnabled) {
216216
connection.setRequestProperty("X-Local-Fallback-Cloudflare", "true");
217-
inputParams.put("error_message", downloadFailureThrowable.getMessage());
217+
inputParams.put("error_message", downloadFailureThrowable.getClass().getName());
218218
}
219219
String jsonInputParams = inputParams.toString();
220220

0 commit comments

Comments
 (0)