Skip to content

Commit

Permalink
Better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Dec 3, 2024
1 parent b0d4257 commit 9aba876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/src/tabulate.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void printTable(const std::vector<std::tuple<Types...>>& rows, const std::vector
const auto nCols = headers.size();
constexpr auto nColsFromRows = std::tuple_size_v<std::tuple<Types...>>;
if (nCols != nColsFromRows) {
throw std::invalid_argument("headers and rows have to have the same size");
throw std::invalid_argument("headers and rows have to have the same number of columns");
}

// Transform all elements into strings first to determine column widths
Expand Down

0 comments on commit 9aba876

Please sign in to comment.