Merge pull request #475 from daniel-vainsencher/labels_columns_mismatch_error_msg

This commit is contained in:
Dheepak Krishnamurthy 2022-11-04 10:32:24 -04:00 committed by GitHub
commit f58c11c6d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -220,6 +220,9 @@ impl TaskReportTable {
}
}
}
let num_labels = self.labels.len();
let num_columns = self.columns.len();
assert!(num_labels == num_columns, "Must have the same number of labels (currently {}) and columns (currently {}). Compare their values as shown by \"task show report.{}.\" and fix your taskwarrior config.", num_labels, num_columns, report);
Ok(())
}