File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/plugins/data/common/search/aggs/param_types Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments