propigate errors on index creation fail (#28541) (#28546)

This commit is contained in:
Matt Apperson 2019-01-10 20:07:41 -05:00 committed by GitHub
parent a91bbb5300
commit 1e2a72a902
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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);
},
});
}

View file

@ -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);
};