Better error handling on missing resources