Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling of missing rsync executable #38

Open
timstoop opened this issue Sep 29, 2016 · 0 comments
Open

Handling of missing rsync executable #38

timstoop opened this issue Sep 29, 2016 · 0 comments

Comments

@timstoop
Copy link

When rsync is missing on the system, markdoc build exits with a fairly cryptic stacktrace:

Traceback (most recent call last):
  File "/usr/bin/markdoc", line 9, in <module>
    load_entry_point('Markdoc==0.6.6', 'console_scripts', 'markdoc')()
  File "/usr/lib/python2.7/site-packages/markdoc/cli/main.py", line 38, in main
    return command(config, args)
  File "/usr/lib/python2.7/site-packages/markdoc/cli/commands.py", line 29, in wrapper
    return function(config, args)
  File "/usr/lib/python2.7/site-packages/markdoc/cli/commands.py", line 271, in build
    sync_html(config, args)
  File "/usr/lib/python2.7/site-packages/markdoc/cli/commands.py", line 29, in wrapper
    return function(config, args)
  File "/usr/lib/python2.7/site-packages/markdoc/cli/commands.py", line 239, in sync_html
    subprocess.check_call(command)
  File "/usr/lib/python2.7/subprocess.py", line 536, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 523, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

I think it would help a lot of people if markdoc would check on the availability of rsync first and error if it's not available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant