Added error_or and has_error algo.