import React from 'react' import Center from './center' import Area from './area' import { Modal } from 'react-bootstrap' import App from 'app' class ErrorMessage extends React.Component { static get defaultProps() {return{ message: null, stack: null }} constructor(props) { super(props) } render() { let stack = null if (this.props.stack) { stack = } return(

{this.props.message}

{stack}
) } } export default class ErrorPanel extends React.Component { constructor(props) { super(props) } hide() { App.hideError() } render () { var error_msg = null var error = this.props.error console.log(error) if (error.error) { error = error } else if (error.reason) { error = error.reason } if (error.stack && error.message) { error_msg = } else if (error.message) { error_msg = } else { error_msg = } return ( Error {error_msg} ) } }