reset_current_error returns a reference, less use of ScalarLogical