mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-16 16:20:04 +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();
|
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({
|
addToast({
|
||||||
title: getReasonPhrase(response.status),
|
title: getReasonPhrase(response.status),
|
||||||
description: json.message,
|
description: json.message,
|
||||||
|
|||||||
Reference in New Issue
Block a user