Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 1eb57c1

Browse files
author
tkostuch
committed
stringify error
1 parent f4b631c commit 1eb57c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/db.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ const es7RebuildCommand = (cmd) => { // TODO: add parallel processing
2323
console.log(`** Creating temporary index ${tempIndex}`)
2424
es.createIndex(common.db, tempIndex, collectionName, (err) => {
2525
if (err) {
26-
console.log(err)
26+
console.log(JSON.stringify(err, null, 2))
2727
}
2828

2929
console.log(`** We will reindex ${originalIndex} with the current schema`)
3030
es.reIndex(common.db, originalIndex, tempIndex, (err) => {
3131
if (err) {
32-
console.log(err)
32+
console.log(JSON.stringify(err, null, 2))
3333
}
3434

3535
console.log('** Removing the original index')
3636
es.deleteIndex(common.db, originalIndex, (err) => {
3737
if (err) {
38-
console.log(err)
38+
console.log(JSON.stringify(err, null, 2))
3939
}
4040

4141
console.log('** Creating alias')

0 commit comments

Comments
 (0)