Creating custom errors, making sure promised keys are in context