From bc650b94ddb37372041a83cec2c753094f4c9835 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Tue, 5 Feb 2013 13:00:33 +0400 Subject: [PATCH] EA-43391 --- .../src/com/intellij/ide/BrowserUtil.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/platform/platform-api/src/com/intellij/ide/BrowserUtil.java b/platform/platform-api/src/com/intellij/ide/BrowserUtil.java index 3ca731808911..b058fd0f8a59 100644 --- a/platform/platform-api/src/com/intellij/ide/BrowserUtil.java +++ b/platform/platform-api/src/com/intellij/ide/BrowserUtil.java @@ -162,18 +162,17 @@ public class BrowserUtil { try { Desktop.getDesktop().browse(uri); LOG.debug("Browser launched using JDK 1.6 API"); - } - catch (Exception e) { - LOG.error(e); - } - return; - } - else { - List command = getDefaultBrowserCommand(); - if (command != null) { - launchBrowserByCommand(uri, command); return; } + catch (Exception e) { + LOG.warn("Error while using Desktop API, fallback to CLI", e); + } + } + + List command = getDefaultBrowserCommand(); + if (command != null) { + launchBrowserByCommand(uri, command); + return; } }