Skip to content

Commit 64fdfb8

Browse files
committed
Add error alert for run errors
1 parent 253eddd commit 64fdfb8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/addons/cb.run/addon-built.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/addons/cb.run/client.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@ define([], function() {
4545
"r"
4646
]
4747
}, function() {
48-
box.run().then(function(runInfo) {
48+
return box.run().then(function(runInfo) {
4949
alerts.show("Your project is running <a target='_blank' href='"+runInfo.url+"'>on port "+runInfo.port+"</a>", 5000);
5050
updatePorts();
51+
}, function(err) {
52+
dialogs.alert("Error running this project", "An error occurred when trying to run this project: "+(err.message || err));
5153
});
5254
});
5355

0 commit comments

Comments
 (0)