[Fixes #2557] nicer error message if someone creates server/index.js and it doesn’t export a function
Merge pull request #2558 from stefanpenner/better-error

[Fixes #2557] nicer error message if someone creates server/index.js and...
because