nginxinc / crossplane

Quick and reliable way to convert NGINX configurations into JSON and back.
Apache License 2.0
717 stars 86 forks source link

having error while format mimi.types #58

Closed Taymindis closed 5 years ago

Taymindis commented 5 years ago
crossplane format /etc/nginx/mime.types
Traceback (most recent call last):
  File "/usr/local/bin/crossplane", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/crossplane/__main__.py", line 228, in main
    func(**kwargs)
  File "/usr/local/lib/python3.7/site-packages/crossplane/__main__.py", line 134, in format
    raise NgxParserBaseException(e['error'], e['file'], e['line'])
crossplane.errors.NgxParserBaseException: "types" directive is not allowed here in /etc/nginx/mime.types:5 in /etc/nginx/mime.types:5
aluttik commented 5 years ago

crossplane format currently only works on the main config file for some reason. I'll change it and keep you updated.

aluttik commented 5 years ago

@Taymindis: this has been fixed and crossplane 0.4.15 has been uploaded to PyPI :+1: