rorodata / firefly

function as a service
http://rorodata.github.io/firefly
Apache License 2.0
194 stars 30 forks source link

Exception: Invalid function, please specify it as module.function #49

Closed anandology closed 7 years ago

anandology commented 7 years ago

Got this error when trying to run firefly.

$ firefly flik_server flik_server.app.get_activity flik_server.app.get_model
Traceback (most recent call last):
  File "/home/rorodata/.local/bin/firefly", line 11, in <module>
    sys.exit(main())
  File "/home/rorodata/.local/lib/python2.7/site-packages/firefly/main.py", line 78, in main
    functions = load_functions(args.functions)
  File "/home/rorodata/.local/lib/python2.7/site-packages/firefly/main.py", line 46, in load_functions
    return [load_function(function_spec) for function_spec in function_specs]
  File "/home/rorodata/.local/lib/python2.7/site-packages/firefly/main.py", line 32, in load_function
    raise Exception("Invalid function, please specify it as module.function")
Exception: Invalid function, please specify it as module.function

I've pass couple of functions as arguments and it wasn't clear from the error message that which one of those has error. It would be nice to mention the function name that is invalid.

Suggested error message: Exception: Invalid function: flik-server