hapijs / glue

Server composer for hapi.js
Other
245 stars 62 forks source link

No error when registering a plugin, server silently ends #59

Closed garfbargle closed 8 years ago

garfbargle commented 8 years ago

Explanation

Registering some plugins is causing my composer to kill the server process but there is no explanation or errors. If I remove this plugin registration my server stays running as expected.

Setup

Given this registrations configuration:

registrations: [
     {
        plugin: {
          register: 'lout'
        }
      }
    ] 
Composer(function (err, server) {

  if (err) {
    throw err;
  }

  server.start(() => {
    console.log('Server running at: ' + server.info.uri);
  });

});

Expected

error returned

Actual

server starts with no error then silently quits.

csrl commented 8 years ago

You can open an issue with the hapi server project. Glue doesn't control what hapi does with plugins that do not exist. In any case, you can catch the error hapi is throwing.

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.