app/assets/javascripts/konacha/parent.js in konacha-2.0.0.beta2 vs app/assets/javascripts/konacha/parent.js in konacha-2.0.0.beta3
- old
+ new
@@ -2,10 +2,11 @@
var iframes = document.getElementsByTagName('iframe');
for (var i = 0; i < iframes.length; ++i) {
if (!iframes[i].contentWindow.mocha) {
(function (path) {
mocha.suite.addTest(new Mocha.Test(path, function () {
- throw new Error("Failed to load " + path + ". Perhaps it failed to compile?");
+ throw new Error("Failed to load " + path + ".\n" +
+ "Perhaps it failed to compile? Check the rake output for errors.");
}));
})(iframes[i].getAttribute("data-path"));
}
}