Skip to content

Commit

Permalink
propigate errors on index creation fail (elastic#28541) (elastic#28546)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattapperson authored Jan 11, 2019
1 parent a91bbb5 commit 1e2a72a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/beats_management/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export function beats(kibana: any) {
},
config: () => config,
configPrefix: CONFIG_PREFIX,
init(server: KibanaLegacyServer) {
initServerWithKibana(server);
async init(server: KibanaLegacyServer) {
await initServerWithKibana(server);
},
});
}
4 changes: 2 additions & 2 deletions x-pack/plugins/beats_management/server/kibana.index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { compose } from './lib/compose/kibana';
import { initManagementServer } from './management_server';

export const initServerWithKibana = (hapiServer: any) => {
export const initServerWithKibana = async (hapiServer: any) => {
const libs = compose(hapiServer);
initManagementServer(libs);
await initManagementServer(libs);
};

0 comments on commit 1e2a72a

Please sign in to comment.