better error feedback for missing resources.