Skip to content

Commit 691ad30

Browse files
committed
Add more debugging
1 parent 04ec85e commit 691ad30

File tree

1 file changed

+6
-2
lines changed
  • src/plugins/data/common/search/aggs/param_types

1 file changed

+6
-2
lines changed

src/plugins/data/common/search/aggs/param_types/field.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,13 @@ export class FieldParamType extends BaseParamType {
8686
const validField = this.getAvailableFields(aggConfig).find((f: any) => f.name === fieldName);
8787
if (!validField) {
8888
// eslint-disable-next-line no-console
89-
console.error('Error AggConfig', aggConfig);
89+
console.error('Error field', JSON.stringify(field));
9090
// eslint-disable-next-line no-console
91-
console.error('Error AggConfig', aggConfig.getIndexPattern().fields);
91+
console.error('Error AggConfig', JSON.stringify(aggConfig));
92+
// eslint-disable-next-line no-console
93+
console.error('Error fields', JSON.stringify(aggConfig.getIndexPattern().fields));
94+
// eslint-disable-next-line no-console
95+
console.error('Error indexpattern', JSON.stringify(aggConfig.getIndexPattern()));
9296
throw new Error(
9397
i18n.translate(
9498
'data.search.aggs.paramTypes.field.invalidSavedFieldParameterErrorMessage',

0 commit comments

Comments
 (0)