fix typo
This commit is contained in:
parent
2249d06337
commit
3f31ca57ed
2 changed files with 4 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ http.createServer(function(req, res) {
|
||||||
if (req.method == "PUT") {
|
if (req.method == "PUT") {
|
||||||
if (!allowSave)
|
if (!allowSave)
|
||||||
return error(res, 404, "Saving not allowed pass --allow-save to enable");
|
return error(res, 404, "Saving not allowed pass --allow-save to enable");
|
||||||
save(req, res, filename);
|
return save(req, res, filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.exists(filename, function(exists) {
|
fs.exists(filename, function(exists) {
|
||||||
|
|
@ -86,6 +86,7 @@ function save(req, res, filePath) {
|
||||||
}
|
}
|
||||||
res.statusCode = 200;
|
res.statusCode = 200;
|
||||||
res.end("OK");
|
res.end("OK");
|
||||||
|
console.log("saved ", filePath);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -126,8 +126,8 @@ function handleSaveResult(err, editor) {
|
||||||
return log(
|
return log(
|
||||||
"Write access to this file is disabled.\n"+
|
"Write access to this file is disabled.\n"+
|
||||||
"To enable saving your changes to disk, clone the Ace repository\n"+
|
"To enable saving your changes to disk, clone the Ace repository\n"+
|
||||||
"and run the included web server with the --allow-write option\n"+
|
"and run the included web server with the --allow-save option\n"+
|
||||||
"`node static.js --allow-write` or `static.py --puttable=*`"
|
"`node static.js --allow-save` or `static.py --puttable=*`"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
editor.session.getUndoManager().markClean();
|
editor.session.getUndoManager().markClean();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue