Ensure that context is always provided for error logs

This commit is contained in:
Scott Nonnenberg 2021-05-19 15:00:57 -07:00
parent 7418a5c663
commit be087c3498
5 changed files with 18 additions and 5 deletions

View file

@ -60,7 +60,9 @@ export const CallingNotification: React.FC<PropsType> = React.memo(props => {
callType = 'video';
break;
default:
window.log.error(missingCaseError(props));
window.log.error(
`CallingNotification missing case: ${missingCaseError(props)}`
);
return null;
}