[Update] Add an error notification that is when an invalid endpoint or message is received(mostly frontend side endpoint error handling bug).
This commit is contained in:
@@ -241,6 +241,9 @@ export const _useBackendErrorHandling = () => {
|
||||
|
||||
default:
|
||||
console.error(`Invalid endpoint or message: ${endpoint}\nmessage: ${message}\nresult: ${JSON.stringify(result)}`);
|
||||
showNotification_Error(
|
||||
`An error occurred. Please contact the developers and restart VRCT. Error: Invalid endpoint or message: ${endpoint}\nmessage: ${message}\nresult: ${JSON.stringify(result)}`, { hide_duration: null }
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user