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

Assert on invalid command line argument is not user friendly. #72

Closed
lkarsten opened this issue Mar 13, 2016 · 0 comments
Closed

Assert on invalid command line argument is not user friendly. #72

lkarsten opened this issue Mar 13, 2016 · 0 comments
Assignees

Comments

@lkarsten
Copy link
Contributor

When implementing the automake test driver, an incorrect path error lead to the following output:

./tests/test02-simple-request: line 5: common.sh: No such file or directory
Assert error in front_arg_add(), configuration.c line 565:
  Condition((fa->port) != 0) not true.
./tests/test02-simple-request: line 8:  8570 Aborted                 (core dumped) hitch $HITCH_ARGS --backend=[hitch-tls.org]:80 "--frontend=[${LISTENADDR}]:$LISTENPORT" certs/site1.example.com
FAIL: tests/test02-simple-request

Asserting when the user calls hitch with bad arguments isn't very user friendly and should be improved.

This was on 9265839.

Not sure which part is producing the assert. Since common.sh isn't in place, the working directory is not src/tests/ so most likely certs/site1.example.com doesn't exist.

@daghf daghf self-assigned this Mar 14, 2016
@daghf daghf closed this as completed in be99286 Apr 19, 2016
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

2 participants