Return a more informative error message when .main() is not set, fixes #23