diff --git a/src/ContainerHome.react.js b/src/ContainerHome.react.js
index bb3c4655f1..de13f769c0 100644
--- a/src/ContainerHome.react.js
+++ b/src/ContainerHome.react.js
@@ -74,7 +74,9 @@ var ContainerHome = React.createClass({
if (this.props.error) {
body = (
-
There was a problem connecting to the Docker Engine in the VirtualBox VM.
This could be caused because this Mac is currently connected to a VPN, blocking access to the VM. If the issue persists, please file a ticket on our GitHub repo.
+
An error occurred:
+
{this.props.error}
+
);
diff --git a/src/ContainerStore.js b/src/ContainerStore.js
index b0cc3940df..109a022d19 100644
--- a/src/ContainerStore.js
+++ b/src/ContainerStore.js
@@ -56,6 +56,12 @@ var ContainerStore = assign(Object.create(EventEmitter.prototype), {
var data = JSON.parse(str);
console.log(data);
+ if (data.error) {
+ _error = data.error;
+ callback(data.error);
+ return;
+ }
+
if (data.status && (data.status === 'Pulling dependent layers' || data.status.indexOf('already being pulled by another client') !== -1)) {
blockedCallback();
return;
@@ -82,7 +88,8 @@ var ContainerStore = assign(Object.create(EventEmitter.prototype), {
progressCallback(totalProgress);
});
stream.on('end', function () {
- callback();
+ callback(_error);
+ _error = null;
});
});
});