Skip to content

Loading…

node-zip no loger shows these errors in debug mode #5

Open
wants to merge 1 commit into from

1 participant

@tkafka

{ [Error: ENOENT, no such file or directory 'C:\Work\pool-3-mobile\trunk\Pool-Live-Tour\PoolLiveTour2\assets\asset-versioner\jszip\jszip.js']
errno: 34,
code: 'ENOENT',
path: 'C:\Work\pool-3-mobile\trunk\Pool-Live-Tour\PoolLiveTour2\assets\asset-versioner\jszip\jszip.js',
syscall: 'open' }

@tkafka tkafka node-zip no loger shows these errors in debug mode
{ [Error: ENOENT, no such file or directory 'C:\Work\pool-3-mobile\trunk\Pool-Live-Tour\PoolLiveTour2\assets\asset-versioner\jszip\jszip.js']
  errno: 34,
  code: 'ENOENT',
  path: 'C:\\Work\\pool-3-mobile\\trunk\\Pool-Live-Tour\\PoolLiveTour2\\assets\\asset-versioner\\jszip\\jszip.js',
  syscall: 'open' }
64b2f75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 30, 2013
  1. @tkafka

    node-zip no loger shows these errors in debug mode

    tkafka committed
    { [Error: ENOENT, no such file or directory 'C:\Work\pool-3-mobile\trunk\Pool-Live-Tour\PoolLiveTour2\assets\asset-versioner\jszip\jszip.js']
      errno: 34,
      code: 'ENOENT',
      path: 'C:\\Work\\pool-3-mobile\\trunk\\Pool-Live-Tour\\PoolLiveTour2\\assets\\asset-versioner\\jszip\\jszip.js',
      syscall: 'open' }
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/nodezip.js
View
3 lib/nodezip.js
@@ -1,7 +1,8 @@
var fs = require('fs');
var vm = require('vm');
var loadVendor = function(js) {
- vm.runInThisContext(fs.readFileSync(__dirname+'/../vendor/'+js), js);
+ var path = fs.realpathSync(__dirname+'/../vendor/'+js);
+ vm.runInThisContext(fs.readFileSync(path), path);
}.bind(this);
loadVendor('jszip/jszip.js');
Something went wrong with that request. Please try again.