Changeset 13487 in josm


Ignore:
Timestamp:
2018-03-03T18:18:36+01:00 (6 years ago)
Author:
Don-vip
Message:

see #15992 - do not log PS 2.0 errors as such (debug level is enough)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java

    r13468 r13487  
    728728            return Integer.parseInt(Utils.execOutput(Arrays.asList(
    729729                    "powershell", "-Command", "$PSVersionTable.PSVersion.Major"), 2, TimeUnit.SECONDS));
    730         } catch (NumberFormatException | IOException | ExecutionException | InterruptedException e) {
     730        } catch (ExecutionException e) {
     731            // PowerShell 2.0 (included in Windows 7) does not even support this
     732            Logging.debug(e);
     733            return -1;
     734        } catch (NumberFormatException | IOException | InterruptedException e) {
    731735            Logging.error(e);
    732736            return -1;
Note: See TracChangeset for help on using the changeset viewer.