Permalink
Browse files

Wrap file not found info text in a verbosity check

  • Loading branch information...
tivac committed Aug 1, 2011
1 parent 26977ca commit 8cdf2bcb1ad826d1f664b12fef2496c388023f7f
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/net/nczonline/web/cssembed/CSSURLEmbedder.java
@@ -368,8 +368,10 @@ private String getImageURIString(String url, String originalUrl) throws IOExcept
System.err.println("[INFO] Generated data URI for '" + url + "'.");
}
} catch (FileNotFoundException e){
- if (hasOption(SKIP_MISSING_OPTION)){
- System.err.println("[INFO] Could not find file. " + e.getMessage() + " Skipping.");
+ if(hasOption(SKIP_MISSING_OPTION)) {
+ if (verbose){
+ System.err.println("[INFO] Could not find file. " + e.getMessage() + " Skipping.");
+ }
writer.write(originalUrl);
} else {

0 comments on commit 8cdf2bc

Please sign in to comment.