diff --git a/src/containers/gui.jsx b/src/containers/gui.jsx index 79a85c9dc786d9775863679a7395d7564b09a478..ed2ec178587147662aa9e666f617d80ee2ae39cb 100644 --- a/src/containers/gui.jsx +++ b/src/containers/gui.jsx @@ -65,7 +65,10 @@ class GUI extends React.Component { this.props.vm.stopAll(); } render () { - if (this.state.loadingError) throw new Error(`Failed to load project: ${this.state.errorMessage}`); + if (this.state.loadingError) { + throw new Error( + `Failed to load project from server [id=${window.location.hash}]: ${this.state.errorMessage}`); + } const { children, fetchingProject, diff --git a/src/containers/project-loader.jsx b/src/containers/project-loader.jsx index 80ef161ea291d8fbb87e77d203fb314e187d725b..7243e5f66906c2588a928224e52bb04e39ffe10f 100644 --- a/src/containers/project-loader.jsx +++ b/src/containers/project-loader.jsx @@ -76,7 +76,10 @@ class ProjectLoader extends React.Component { ); } render () { - if (this.state.loadingError) throw new Error(`Failed to load project: ${this.state.errorMessage}`); + if (this.state.loadingError) { + throw new Error( + `Failed to load project from file: ${this.state.errorMessage}`); + } const { /* eslint-disable no-unused-vars */ children,