Remove unused error type.

Now an error can only be of type std::exception_ptr, so i have removed useless variant.