error handling for wrapper method

Now we'll fire an error if the wrapper fails, instead of just passing to the internal functions.