Add adaptor for error