Skip to content

Commit

Permalink
app: Capture Sentry message for failing to mark now playing
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Oct 16, 2020
1 parent efff79e commit f8e6274
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shared/store/network.ts
@@ -1,3 +1,4 @@
import {captureMessage, Severity} from '@sentry/node';
import {when, runInAction, action} from 'mobx';
import {applyDiff} from 'deep-diff';
import {debounce} from 'lodash';
Expand Down Expand Up @@ -244,10 +245,9 @@ const connectMixstatus = (network: ConnectedProlinkNetwork) => {
const device = store.devices.get(state.deviceId);
const track = device?.track;

// There was a problem loading the track, nothing we can do here. This
// shouldn't happen since the when won't have ran
// There was a problem loading the track, nothing we can do here.
if (track === undefined) {
console.warn('Failed to mark now playing for track');
captureMessage('Failed to mark now playing for track', Severity.Warning);
return;
}

Expand Down

0 comments on commit f8e6274

Please sign in to comment.