[Update] AdvancedSettings: OSC IP Address: Add error notifications.
Add 500 status error message.
This commit is contained in:
@@ -525,7 +525,6 @@ export const useReceiveRoutes = () => {
|
||||
"/set/data/speaker_max_phrases": errorHandling_Backend,
|
||||
|
||||
"/set/data/osc_ip_address": errorHandling_Backend,
|
||||
"/set/data/osc_port": errorHandling_Backend,
|
||||
};
|
||||
|
||||
|
||||
@@ -558,7 +557,6 @@ export const useReceiveRoutes = () => {
|
||||
break;
|
||||
|
||||
case 400:
|
||||
case 500:
|
||||
const error_route = error_status_routes[parsed_data.endpoint];
|
||||
if (error_route) {
|
||||
error_route({
|
||||
@@ -571,6 +569,10 @@ export const useReceiveRoutes = () => {
|
||||
handleInvalidEndpoint(parsed_data);
|
||||
}
|
||||
break;
|
||||
case 500:
|
||||
showNotification_Error(
|
||||
`An error occurred. Please restart VRCT or contact the developers. ${JSON.stringify(parsed_data.result)}`, { hide_duration: null });
|
||||
break;
|
||||
|
||||
case 348:
|
||||
// console.log(`from backend: %c ${JSON.stringify(parsed_data)}`, style_348);
|
||||
|
||||
Reference in New Issue
Block a user