npub
Version:
publishing tool for your node projects hosted on github
19 lines (15 loc) • 430 B
JavaScript
// Generated by CoffeeScript 1.9.1
var debug, editor;
editor = require('editor');
debug = require('debug')("editor");
module.exports = function(filePath, callback) {
debug(filePath);
return editor(filePath, function(exitCode) {
debug("status: " + exitCode);
if (exitCode !== 0) {
callback(new Error("editor exited editor with " + exitCode + "; aborting"));
return;
}
return callback();
});
};