Improvement on console logging messages
Describe the bug
Let's assume we tried to load a component wrongly, we getting a message on the console which says that component did not load correctly with an
unspecific error message : error: App exited with code 1
$ pubsweet start
warn: Unable to load component pubsweet-component-wax3 on the server (likely a client component).
info: Starting PubSweet app
info: No "start" script defined in app. Falling back to "pubsweet server" behavior.
info: Starting PubSweet app
info: Checking if database tables exist.
info: Database tables exist.
info: App started.
info: The app will be kept running, even if errors occur, until you stop it.
info: To stop the app use ctrl-C
error: App exited with code 1
warn: Restarting app for 1st time
error: App exited with code 1
warn: Restarting app for 2nd time
error: App exited with code 1
warn: Restarting app for 3rd time
error: App exited with code 1
Steps To Reproduce
Just go to components.json and change pubsweet-component-wax
to pubsweet-component-wax3
and then start the server
Expected behavior
What would be really nice is having more info on the actual error. showing the reason why component did not load.
...
Screenshots
If applicable, add screenshots to help explain your problem.
Device, Operating System and Browser