Skip to content

Commit 27dae25

Browse files
aceArt-GmbHlukas
andauthored
fix(cdk/table): improve error message (#31545)
Co-authored-by: lukas <[email protected]>
1 parent 065a5e3 commit 27dae25

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/cdk/table/table-errors.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ export function getTableDuplicateColumnNameError(name: string) {
2828
* @docs-private
2929
*/
3030
export function getTableMultipleDefaultRowDefsError() {
31-
return Error(`There can only be one default row without a when predicate function.`);
31+
return Error(
32+
`There can only be one default row without a when predicate function. ` +
33+
'Or set `multiTemplateDataRows`.'
34+
);
3235
}
3336

3437
/**
@@ -37,7 +40,7 @@ export function getTableMultipleDefaultRowDefsError() {
3740
*/
3841
export function getTableMissingMatchingRowDefError(data: any) {
3942
return Error(
40-
`Could not find a matching row definition for the` +
43+
`Could not find a matching row definition for the ` +
4144
`provided row data: ${JSON.stringify(data)}`,
4245
);
4346
}

0 commit comments

Comments
 (0)