Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Sep 29, 2020
1 parent d6914dc commit 3e8212b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugins/data/common/search/aggs/param_types/field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ export class FieldParamType extends BaseParamType {
'data.search.aggs.paramTypes.field.invalidSavedFieldParameterErrorMessage',
{
defaultMessage:
'Saved {fieldParameter} parameter is now invalid. Please select a new field.',
'Saved field "{fieldParameter}" is invalid for use with the "{aggType}" aggregation. Please select a new field.',
values: {
fieldParameter: `"${fieldName}"`,
fieldParameter: fieldName,
aggType: aggConfig?.type?.name,
},
}
)
Expand Down

0 comments on commit 3e8212b

Please sign in to comment.