Skip to content

Commit

Permalink
debug missing project
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Mar 6, 2016
1 parent 278e1f7 commit c65175e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/Project.server.bones
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ function loadProject(model, callback) {
mtimeProject(model, this);
},
function(err, mtime) {
if (err) console.error(err);
object._updated = mtime;
var cb = this;
read(path.join(modelPath, 'project.mml'), function(err, stat) {
Expand All @@ -188,7 +189,7 @@ function loadProject(model, callback) {
},
function(err, file) {
var projectName = path.join(modelPath, 'project.mml');
if (err) return callback(new Error.HTTP('Project does not exist: "' + projectName + '"', 404));
if (err) return callback(new Error.HTTP('Project does not exist: "' + projectName + '" ' + err.message, 404));
try {
object = _(object).extend(JSON.parse(file.data));
} catch(err) {
Expand Down

0 comments on commit c65175e

Please sign in to comment.