feature(util) rm tryLog, logError

This commit is contained in:
coderaiser 2014-10-29 04:45:50 -04:00
parent 28da3c2e76
commit d65a349c70
2 changed files with 4 additions and 42 deletions

View file

@ -46,14 +46,12 @@
if (error) {
callback(error);
} else {
error = Util.exec.tryLog(function() {
error = Util.exec.try(function() {
diffResult = diff.applyPatch(data, patch);
});
if (error || !diffResult)
callback({
message: 'Patch fail'
});
if (error)
callback(error);
else
fs.writeFile(name, diffResult, callback);
}