I am attempting to do the following:
1. Evaluate if there was an error during the import
2. Create a hook that will set a flag as an error or a success based on the status code.
3. If there is an error then take the system error message and change it to a user friendly error message.
4. If there isn't then send to the mapping a success message.
The biggest struggle I'm facing at this point is pulling in any and all error information and evaluating it. I have tried a PostSubmit hook after the import and I've done a premap hook prior to the next step. and the JS to pull in the error source, message, and code is eluding me.
Does anyone know the quickest way to get the error information into a hook that can be evaluated with some JS and produce a field that can be evaluated by a future hook or during the handlebar mapping?
Please sign in to leave a comment.