Skip to content

Commit

Permalink
Show resource location for failed resource during generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Shevchenko committed Dec 24, 2013
1 parent 392eed6 commit 570b8e6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ class SiteGenerator {
throw new RuntimeException("Failed to create dirs for file: ${file}")
}
file.withOutputStream { os ->
os.write(compressor.compress(resource.location, resource.render().bytes))
try {
os.write(compressor.compress(resource.location, resource.render().bytes))
} catch (Throwable t) {
throw new RuntimeException("While generating ${resource.location}", t)
}
}
}
log.info "Perf data: ${perf}"
Expand Down

0 comments on commit 570b8e6

Please sign in to comment.