@ -200,7 +207,10 @@ export class DeepLinkHandler {
validatedQuery=awaitschema.parseAsync(query);
}catch(error){
// For parameter validation errors, provide specific error feedback
logConsoleAndDb(`[DeepLink] Invalid parameters for route name ${routeName} for path: ${path}: ${JSON.stringify(error)} ... with params: ${JSON.stringify(params)} ... and query: ${JSON.stringify(query)}`,true);
logConsoleAndDb(
`[DeepLink] Invalid parameters for route name ${routeName} for path: ${path}: ${JSON.stringify(error)} ... with params: ${JSON.stringify(params)} ... and query: ${JSON.stringify(query)}`,
true,
);
awaitthis.router.replace({
name:"deep-link-error",
params,
@ -223,7 +233,10 @@ export class DeepLinkHandler {
query: validatedQuery,
});
}catch(error){
logConsoleAndDb(`[DeepLink] Error routing to route name ${routeName} for path: ${path}: ${JSON.stringify(error)} ... with validated params: ${JSON.stringify(validatedParams)} ... and validated query: ${JSON.stringify(validatedQuery)}`,true);
logConsoleAndDb(
`[DeepLink] Error routing to route name ${routeName} for path: ${path}: ${JSON.stringify(error)} ... with validated params: ${JSON.stringify(validatedParams)} ... and validated query: ${JSON.stringify(validatedQuery)}`,
true,
);
// For parameter validation errors, provide specific error feedback
awaitthis.router.replace({
name:"deep-link-error",
@ -231,12 +244,11 @@ export class DeepLinkHandler {
query:{
originalPath: path,
errorCode:"ROUTING_ERROR",
errorMessage:`Error routing to ${routeName}: ${(JSON.stringify(error))}`,
errorMessage:`Error routing to ${routeName}: ${JSON.stringify(error)}`,