Browse Source

fix msg usage

master
poikilos 6 years ago
committed by Jacob Gustafson
parent
commit
b2ade15b43
  1. 4
      webapp/server.js

4
webapp/server.js

@ -343,6 +343,8 @@ app.post('/set-skin', function (req, res){
// TODO: make sure my_file and project_id values are present // TODO: make sure my_file and project_id values are present
if (files.userFile != undefined) { if (files.userFile != undefined) {
var originalPath = files.userFile.path; var originalPath = files.userFile.path;
console.log("trying to rename " + files.userFile.path
+ " to " + directPath);
fs.rename(files.userFile.path, directPath, function(err) { fs.rename(files.userFile.path, directPath, function(err) {
if (err) { if (err) {
msg = "Failed to rename " + originalPath msg = "Failed to rename " + originalPath
@ -385,7 +387,7 @@ app.get('/', function (req, res) {
if (req.query.date) selected_date_s = req.query.date if (req.query.date) selected_date_s = req.query.date
if (req.query.msg != undefined) { if (req.query.msg != undefined) {
ret += "<br/>\n"; ret += "<br/>\n";
ret += "<b>" + querystring.parse(msg) + "</b><br>\n"; ret += "<b>" + querystring.parse(req.query.msg) + "</b><br>\n";
ret += "<br/>\n"; ret += "<br/>\n";
} }
ret += "assuming minetestserver ran as: " + os.homedir() + "<br/>\n"; ret += "assuming minetestserver ran as: " + os.homedir() + "<br/>\n";

Loading…
Cancel
Save