Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

Commit

Permalink
Wrap file not found info text in a verbosity check
Browse files Browse the repository at this point in the history
  • Loading branch information
tivac committed Aug 1, 2011
1 parent 26977ca commit 8cdf2bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/net/nczonline/web/cssembed/CSSURLEmbedder.java
Expand Up @@ -368,8 +368,10 @@ private String getImageURIString(String url, String originalUrl) throws IOExcept
System.err.println("[INFO] Generated data URI for '" + url + "'."); System.err.println("[INFO] Generated data URI for '" + url + "'.");
} }
} catch (FileNotFoundException e){ } catch (FileNotFoundException e){
if (hasOption(SKIP_MISSING_OPTION)){ if(hasOption(SKIP_MISSING_OPTION)) {
System.err.println("[INFO] Could not find file. " + e.getMessage() + " Skipping."); if (verbose){
System.err.println("[INFO] Could not find file. " + e.getMessage() + " Skipping.");
}


writer.write(originalUrl); writer.write(originalUrl);
} else { } else {
Expand Down

0 comments on commit 8cdf2bc

Please sign in to comment.