Skip to content

Commit

Permalink
Merge pull request #22 from chadmelancia/typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alufers authored Jan 31, 2023
2 parents a3e9be7 + ed64ac6 commit 3f6ef3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mitmproxy2swagger/mitmproxy2swagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,15 @@ def main():
traceback.print_exception(*sys.exc_info())
print(f"{console_util.ANSI_RED}Failed to parse the input file as '{caputre_reader.name()}'. ")
if not args.format:
print(f"It might happen that the input format as incorrectly detected. Please try using '--fromat flow' or '--format har' to specify the input format.{console_util.ANSI_RESET}")
print(f"It might happen that the input format as incorrectly detected. Please try using '--format flow' or '--format har' to specify the input format.{console_util.ANSI_RESET}")
sys.exit(1)
except ValueError as e:
print(f"ValueError: {e}")
# print stack trace
traceback.print_exception(*sys.exc_info())
print(f"{console_util.ANSI_RED}Failed to parse the input file as '{caputre_reader.name()}'. ")
if not args.format:
print(f"It might happen that the input format as incorrectly detected. Please try using '--fromat flow' or '--format har' to specify the input format.{console_util.ANSI_RESET}")
print(f"It might happen that the input format as incorrectly detected. Please try using '--format flow' or '--format har' to specify the input format.{console_util.ANSI_RESET}")
sys.exit(1)

new_path_templates.sort()
Expand Down

0 comments on commit 3f6ef3d

Please sign in to comment.