Added better error logging

master
Keith Irwin 2017-05-23 13:48:54 -04:00
parent 66143571f6
commit 066f95f698
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ module.exports = {
// If Keith, record location to file
if (user.id==='56b020279f740067540f96e9'){
fs.appendFile('demo.txt', loc, function (err) {
if (err) { console.log('there was an error'); }
if (err) { console.error('Error saving demo stuff:',err.stack); }
});
}