]> khamidou — GitHub mirrors - electron.git/commitdiff
Print error when mkdir failed
authorCheng Zhao <zcbenz@gmail.com>
Mon, 13 Oct 2014 11:08:23 +0000 (19:08 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 13 Oct 2014 11:08:23 +0000 (19:08 +0800)
spec/modules-spec.coffee

index 39d0181df12bb5368c2711e61cb7a3bdebcc432f..d7349587a84ba12a0abefeb2a96fde4269288dba 100644 (file)
@@ -22,7 +22,7 @@ describe 'third-party module', ->
     it 'emits file events correctly', (done) ->
       pathwatcher = require 'pathwatcher'
       temp.mkdir 'dir', (err, dir) ->
-        assert err == null
+        assert err == null, String(err)
         file = path.join dir, 'file'
         fs.writeFileSync file, 'content'
         watcher = pathwatcher.watch file, (event) ->