Skip to content

Commit

Permalink
fix: log ES index creation error [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel910 committed Apr 25, 2024
1 parent 26f650a commit ca6908e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const createElasticsearchIndex = async (params: CreateElasticsearchIndexP
console.log(`Elasticsearch index "${index}" for the Form Builder already exists.`);
},
onError: (ex: Error) => {
console.error(`Could not create the Form Builder Elasticsearch index "${index}".`);
console.error(`Could not create the Form Builder Elasticsearch index "${index}".`, ex);
return ex;
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export const createElasticsearchIndex = async (
},
onError: (ex: Error) => {
console.error(
`Could not create the Page Builder Pages Elasticsearch index "${index}".`
`Could not create the Page Builder Pages Elasticsearch index "${index}".`,
ex
);
return ex;
}
Expand Down

0 comments on commit ca6908e

Please sign in to comment.