Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Catch exception on server start #731

Merged
merged 7 commits into from Mar 12, 2018
Merged

Catch exception on server start #731

merged 7 commits into from Mar 12, 2018

Conversation

martin-doyle
Copy link
Contributor

In case of the use of mosca embedded in another program, an unhandled exception causes the main program to fail. Currently, this prevents node-red from being started if a port is already in use. With this change the exception can be caught with server.on('error', ...
I added a unit test as required.

@mcollina mcollina merged commit e253ca9 into moscajs:master Mar 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants