Skip to content

Commit

Permalink
Fix file path error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsdukai committed Jul 11, 2023
1 parent f8012ff commit cb7d901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cityjson2ifc_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def load_cityjson(infile, ignore_duplicate_keys):
cm = cityjson.reader(file=infile,
ignore_duplicate_keys=ignore_duplicate_keys)
except ValueError as e:
raise click.ClickException('%s: "%s".' % (e, infile))
raise click.ClickException('%s: "%s".' % (e, infile.name))
except IOError as e:
raise click.ClickException('Invalid file: "%s".\n%s' % (infile, e))
try:
Expand Down

0 comments on commit cb7d901

Please sign in to comment.