Skip to content

Commit 1976228

Browse files
fix: service must not start without peer-id file
1 parent 38e6b3f commit 1976228

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/peer-id.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ async function getPeerId ({ awsClient, peerIdS3Region, peerIdS3Bucket, peerIdJso
3434
logger.info('peerId loaded from JSON ' + peerIdJsonPath)
3535
return peer
3636
} catch (err) {
37-
logger.error({ err }, 'cant load peer file from ' + peerIdJsonPath)
38-
return createEd25519PeerId()
37+
logger.fatal({ err }, 'cant load peer file from ' + peerIdJsonPath)
38+
throw new Error('cant load peer file from ' + peerIdJsonPath)
3939
}
4040
}
4141

0 commit comments

Comments
 (0)