diff --git a/lib/ace/ace.js b/lib/ace/ace.js index f0e7f50b..b40ab454 100644 --- a/lib/ace/ace.js +++ b/lib/ace/ace.js @@ -66,9 +66,8 @@ exports.config = require("./config"); exports.edit = function(el) { if (typeof(el) == "string") { var _id = el; - if (!(el = document.getElementById(el))) { - console.log("can't match div #" + _id); - } + if (!(el = document.getElementById(el))) + throw "ace.edit can't find div #" + _id; } if (el.env && el.env.editor instanceof Editor)