Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

Converting to plugin #51

Closed
wants to merge 4 commits into from
Closed

Conversation

rutaihwa
Copy link
Contributor

[ Assignment 2 - Converting to plugin ] #43

}
});

next();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

next is a callback so better to do return next()

@hueniverse hueniverse added this to the 0.0.2 milestone Mar 22, 2015
@@ -2,8 +2,7 @@

var Hapi = require('hapi');
var Hoek = require('hoek');
var Package = require('../package.json');

var versionPlugin = require('./version');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version

return reply({ version: Package.version });
}
}
Hoek.assert(!err, err);
});

server.start(function (err) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as my error, you should start the server in the register callback

@hueniverse hueniverse closed this Mar 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants