Skip to content

Commit 5cfc9b4

Browse files
committed
Add root cause to exception when checking library
1 parent 523802b commit 5cfc9b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bundles/com.eclipsesource.jshint.ui/src/com/eclipsesource/jshint/ui/internal/preferences/ui/JSHintPreferencePage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2012 EclipseSource.
2+
* Copyright (c) 2012, 2013 EclipseSource.
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License v1.0
55
* which accompanies this distribution, and is available at
@@ -215,7 +215,7 @@ private static void validateFile( File file ) throws IllegalArgumentException {
215215
inputStream.close();
216216
}
217217
} catch( Exception exception ) {
218-
throw new IllegalArgumentException( "File is not a valid JSHint library" );
218+
throw new IllegalArgumentException( "File is not a valid JSHint library", exception );
219219
}
220220
}
221221

0 commit comments

Comments
 (0)