I made it catch the error and throw a message