@timber-js/app 0.2.0-alpha.55 → 0.2.0-alpha.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1974,7 +1974,10 @@ function createPipeline(config) {
1974
1974
  try {
1975
1975
  await coerceSegmentParams(match);
1976
1976
  } catch (error) {
1977
- if (error instanceof ParamCoercionError) return new Response(null, { status: 404 });
1977
+ if (error instanceof ParamCoercionError) {
1978
+ if (config.renderNoMatch) return config.renderNoMatch(req, responseHeaders);
1979
+ return new Response(null, { status: 404 });
1980
+ }
1978
1981
  throw error;
1979
1982
  }
1980
1983
  setSegmentParams(match.params);