Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed exception in default/quiet mode when sniffing for jshint

  • Loading branch information...
commit 515dd8613201595a8a37947f01330f0312566e03 1 parent cc4b53f
Satyen Desai authored
Showing with 10 additions and 11 deletions.
  1. +10 −11 componentbuild/shared/macrolib.xml
View
21 componentbuild/shared/macrolib.xml
@@ -141,17 +141,16 @@
</or>
</not>
<then>
- <exec executable="jshint" failifexecutionfails="false" outputproperty="jshint.version">
- <arg line="--version"/>
- </exec>
- </then>
- </if>
- <if>
- <not>
- <isset property="jshint.version"/>
- </not>
- <then>
- <echo>Ignore the `java.io.IOException`, that means it can't find `jshint`. We will use Node.js instead of `jshint`</echo>
+ <trycatch>
+ <try>
+ <exec executable="jshint" failifexecutionfails="true" outputproperty="jshint.version">
+ <arg line="--version"/>
+ </exec>
+ </try>
+ <catch>
+ <echo level="debug">Failed to get jshint version. Assuming it's not installed.</echo>
+ </catch>
+ </trycatch>
</then>
</if>
<if>
Please sign in to comment.
Something went wrong with that request. Please try again.