Log request data when endpoint is missing

This commit is contained in:
Dev 2024-01-05 14:50:27 +00:00
parent 6da2ce2f74
commit b5951a147b

View File

@ -97,7 +97,7 @@ export class InventoryItemEventRouter extends ItemEventRouterDefinition
case ItemEventActions.SET_FAVORITE_ITEMS:
return this.inventoryCallbacks.setFavoriteItem(pmcData, body, sessionID);
default:
throw new Error(`Unhandled event ${url}`);
throw new Error(`Unhandled event ${url} request: ${JSON.stringify(body)}`);
}
}
}