Throw error instead of string

This commit is contained in:
Kevin Sawicki
2013-04-02 14:40:55 -07:00
parent 07b40265fb
commit 9a8fd062c4

View File

@@ -242,4 +242,4 @@ $.fn.textInput = (data) ->
$(this).trigger(event)
unless fs.md5ForPath(require.resolve('fixtures/sample.js')) == "dd38087d0d7e3e4802a6d3f9b9745f2b"
throw "Sample.js is modified"
throw new Error("Sample.js is modified")