Improving the error handling for the magic resource creator.