dce-reactkit 3.6.27 → 3.6.28

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.6.27",
3
+ "version": "3.6.28",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -606,7 +606,13 @@ const genRouteHandler = (
606
606
  } catch (err) {
607
607
  // Print because we cannot store the error
608
608
  // eslint-disable-next-line no-console
609
- console.error('Could not log the following:', opts);
609
+ console.error(
610
+ 'Could not log the following:',
611
+ logOpts,
612
+ 'due to this error:',
613
+ (err as any ?? {}).message,
614
+ (err as any ?? {}).stack,
615
+ );
610
616
 
611
617
  // Create a dummy log to return
612
618
  const dummyMainInfo: LogMainInfo = {