feat(errors): Added logic to return errors to synchronous results