cordo 2.4.0 → 2.4.1
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.
- package/package.json +1 -1
- package/src/errors/handle.ts +1 -3
package/package.json
CHANGED
package/src/errors/handle.ts
CHANGED
|
@@ -40,7 +40,7 @@ export namespace HandleErrors {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
function useDefaultHandler(error: CordoError) {
|
|
43
|
-
console.
|
|
43
|
+
console.trace('No error handler found for', error.name)
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
function handleErrorStack(initialError: CordoError, handlers: CordoErrorHandler[], request: RouteRequest) {
|
|
@@ -61,8 +61,6 @@ export namespace HandleErrors {
|
|
|
61
61
|
export function thrownOnRoute(error: CordoError, request: RouteRequest) {
|
|
62
62
|
const currentRoute = CordoMagic.getCwd()
|
|
63
63
|
|
|
64
|
-
console.error(`Error on route ${currentRoute}: ${error.name}`)
|
|
65
|
-
|
|
66
64
|
const boundaries = findApplicableBoundaries(currentRoute)
|
|
67
65
|
handleErrorStack(error, boundaries.map(b => b.impl.handler), request)
|
|
68
66
|
}
|