should return {error, Error} when experiencing error