Skip to content

Commit

Permalink
fix: old game version should not crash the program
Browse files Browse the repository at this point in the history
  • Loading branch information
SayakMukhopadhyay committed Sep 7, 2024
1 parent 4f481cc commit 5383670
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion eddn_listener/schemas/journalv5.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ function Journal() {
this.trackSystem = async (message, header) => {
let mongoSession = await mongoose.startSession()
if (!header.gameversion || parseFloat(header.gameversion) < 4) {
throw new Error('Message from Legacy Game Version ' + header.gameversion)
const errorMessage = 'Message from Legacy Game Version ' + header.gameversion
bugsnagCaller(new Error(errorMessage), {
metaData: {
message: errorMessage
}
})
}
if (message.event === 'FSDJump' || message.event === 'Location' || message.event === 'CarrierJump') {
try {
Expand Down

0 comments on commit 5383670

Please sign in to comment.