Skip to content

Commit

Permalink
print fsevents require error when env var set (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjpr authored and es128 committed May 12, 2017
1 parent 3b1071a commit 3d91781
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/fsevents-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ var fs = require('fs');
var sysPath = require('path');
var readdirp = require('readdirp');
var fsevents;
try { fsevents = require('fsevents'); } catch (error) {}
try { fsevents = require('fsevents'); } catch (error) {
if (process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR) console.error(error)
}

// fsevents instance helper functions

Expand Down

0 comments on commit 3d91781

Please sign in to comment.