mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +00:00
Add new error class path to ErrorHandlingMiddleware
This commit is contained in:
@@ -20,7 +20,7 @@ export const ErrorHandlingMiddleware: Middleware = async function (
|
||||
|
||||
let json: any = await response.json();
|
||||
|
||||
if (json.type == "dev.hilla.exception.EndpointException") {
|
||||
if (json.type == "dev.hilla.exception.EndpointException" || json.type == "com.vaadin.hilla.exception.EndpointException") {
|
||||
addToast({
|
||||
title: getReasonPhrase(response.status),
|
||||
description: json.message,
|
||||
|
||||
Reference in New Issue
Block a user