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

fteproxy terminates abruptly on input of a bad format name #153

Closed
kpdyer opened this issue Jul 21, 2014 · 0 comments
Closed

fteproxy terminates abruptly on input of a bad format name #153

kpdyer opened this issue Jul 21, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@kpdyer
Copy link
Owner

kpdyer commented Jul 21, 2014

fteproxy handles invalid format names poorly. Instead, fteproxy should terminate with a helpful error message.

$ fteproxy --upstream-format badformatname
fteproxy Copyright (C) 2012-2014 Kevin P. Dyer <[email protected]>
    This program comes with ABSOLUTELY NO WARRANTY.
    This is free software, and you are welcome to redistribute it under certain conditions.

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/fteproxy/cli.py", line 163, in run
    outgoing_regex = fteproxy.defs.getRegex(self._args.upstream_format)
  File "/usr/local/lib/python2.7/site-packages/fteproxy/defs/__init__.py", line 50, in getRegex
    raise InvalidRegexName(format_name)
InvalidRegexName: badformatname
ERROR: FTEMain terminated unexpectedly: badformatname
  File "/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 783, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/site-packages/fteproxy/cli.py", line 210, in run
    fteproxy.fatal_error("FTEMain terminated unexpectedly: "+str(e))
  File "/usr/local/lib/python2.7/site-packages/fteproxy/__init__.py", line 53, in fatal_error
    traceback.print_stack()
@kpdyer kpdyer added this to the 0.2.17 milestone Jul 21, 2014
@kpdyer kpdyer self-assigned this Jul 21, 2014
@kpdyer kpdyer modified the milestones: 0.2.17, 0.2.18 Aug 27, 2014
@kpdyer kpdyer added the bug label Aug 27, 2014
@kpdyer kpdyer modified the milestones: 0.2.19, 0.2.18 Sep 17, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant