Show resource location for failed resource during generation.
(cherry picked from commit 570b8e6)