diff --git a/packages/vulcan-debug/lib/components/ErrorCatcherContents.jsx b/packages/vulcan-debug/lib/components/ErrorCatcherContents.jsx
index 6a7075170a..1d6a2cf8d6 100644
--- a/packages/vulcan-debug/lib/components/ErrorCatcherContents.jsx
+++ b/packages/vulcan-debug/lib/components/ErrorCatcherContents.jsx
@@ -1,9 +1,9 @@
import React from 'react';
import { Components, replaceComponent } from 'meteor/vulcan:lib';
-const ErrorCatcherContents = ({ error }) => (
+const ErrorCatcherContents = ({ error, message }) => (
-
+
Here are some suggestions to help you fix this issue:
diff --git a/packages/vulcan-errors/lib/components/ErrorCatcher.jsx b/packages/vulcan-errors/lib/components/ErrorCatcher.jsx
index de14e6a62f..0974542777 100644
--- a/packages/vulcan-errors/lib/components/ErrorCatcher.jsx
+++ b/packages/vulcan-errors/lib/components/ErrorCatcher.jsx
@@ -15,6 +15,8 @@ import { withRouter } from 'react-router';
import React, { Component } from 'react';
import { Errors } from '../modules/errors.js';
+const getMessage = error => error.message || error.errorMessage;
+
class ErrorCatcher extends Component {
state = {
error: null,
@@ -25,7 +27,7 @@ class ErrorCatcher extends Component {
const { sourceVersion } = siteData;
this.setState({ error });
Errors.log({
- message: error.message,
+ message: getMessage(error),
error,
details: { ...errorInfo, sourceVersion },
currentUser,
@@ -47,15 +49,15 @@ class ErrorCatcher extends Component {
render() {
const { error } = this.state;
- return error ? : this.props.children;
+ return error ? : this.props.children;
}
}
registerComponent('ErrorCatcher', ErrorCatcher, withCurrentUser, withSiteData, withRouter);
-const ErrorCatcherContents = ({ error }) => (
+const ErrorCatcherContents = ({ error, message }) => (
-
+
);