inveniosoftware / invenio-cli

CLI module for Invenio
https://invenio-cli.readthedocs.io
MIT License
10 stars 43 forks source link

fix error message on catalog compilation command #344

Closed ppanero closed 1 year ago

ppanero commented 1 year ago

It looks like this now:

Created required fixtures!
Compiling message catalog...
Traceback (most recent call last):
  File "/Users/ppanero/.virtualenvs/instance-comm-perm/bin/pybabel", line 8, in <module>
    sys.exit(main())
  File "/Users/ppanero/.virtualenvs/instance-comm-perm/lib/python3.9/site-packages/babel/messages/frontend.py", line 1034, in main
    return CommandLineInterface().run(sys.argv)
  File "/Users/ppanero/.virtualenvs/instance-comm-perm/lib/python3.9/site-packages/babel/messages/frontend.py", line 960, in run
    return cmdinst.run()
  File "/Users/ppanero/.virtualenvs/instance-comm-perm/lib/python3.9/site-packages/babel/messages/frontend.py", line 198, in run
    for errors in self._run_domain(domain).values():
  File "/Users/ppanero/.virtualenvs/instance-comm-perm/lib/python3.9/site-packages/babel/messages/frontend.py", line 236, in _run_domain
    raise OptionError('no message catalogs found')
distutils.errors.DistutilsOptionError: no message catalogs found

Updating service setup status (True)...
Service setup status updated (new value True).

important the fail message at the moment exists per cli-commnad, an improvement would be to have them per command-step. But this is a bigger task that should be tackled in a different issue (needs to be opened).