rem: fs.writeFileSync(gpioFile, '' + value, null); 
add: try { fs.writeFileSync(gpioFile, '' + value, null); } catch(ex) { winston.error("Unable to write to " + gpioFile); } 
context: f.digitalWrite = function(pin, value, callback) {    winston.debug('digitalWrite(' + [pin, value] + ');');    pin = getpin(pin);    value = value ? 1 : 0;    var gpioFile = '/sys/class/gpio/gpio' + pin.gpio + '/value';    if(pin.led) {        var pathA = "/sys/class/leds/beaglebone:";        var pathB = pathA;        pathA += ":" + pin.led + "/brightness";        pathB += "green:" + pin.led + "/brightness";        if(fs.existsSync(pathA)) {            gpioFile = pathA;        } else {            if(fs.existsSync(pathB)) {                gpioFile = pathB;            } else {                winston.error("Unable to find LED: " + pin.led);            }        }    }    winston.debug("gpioFile = " + gpioFile);    if(callback) {        fs.writeFile(gpioFile, '' + value, null, callback);    } else {        fs.writeFileSync(gpioFile, '' + value, null);    }    return(true);};
meta: 3863	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3863/627393f8dadf870c03af0a7767c4245cb6d00351/index.js/clean/node_modules/bonescript/index.js