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

Obscure message given back when multiple matches exist #384

Open
atkoehler opened this issue Oct 16, 2013 · 1 comment
Open

Obscure message given back when multiple matches exist #384

atkoehler opened this issue Oct 16, 2013 · 1 comment

Comments

@atkoehler
Copy link

Basically I lowed my verbosity but now all that is sent back to me is a "Server returned False" when it cannot execute a command. The reason it can't execute is because I typed Lab1 and it found Lab1 and Lab10.

Some of this information should be presented to the user despite the verbosity level because it just looks like the server is broken. Or it should be stipulated somewhere that things will become confusing if you turn down the verbosity too much.

> modify_user_deadline cs010_13fal/Lab1 thwan004@ucr.edu "10/20/2013 21:00:00" "10/20/2013 21:00:00"
DEBUG: Found keyword arguments...
{}
------------------------------------------------------------------------
DEBUG: Found positional_arguments...
['cs010_13fal/Lab1',
 'thwan004@ucr.edu',
 '10/20/2013 21:00:00',
 '10/20/2013 21:00:00']
------------------------------------------------------------------------
DEBUG: Prepared request for Galah...
{'api_name': 'modify_user_deadline',
 'assignment': 'cs010_13fal/Lab1',
 'new_cutoff_date': '10/20/2013 21:00:00',
 'new_due_date': '10/20/2013 21:00:00',
 'user': 'thwan004@ucr.edu'}
------------------------------------------------------------------------
INFO: Executing modify_user_deadline command on Galah as user akoeh001@cs.ucr.edu.
DEBUG: Using ca-certs file at '/home/csgrads/akoeh001/.cache/galah/ca_certs'.
INFO: The server sent back...
Your command cannot be completed as entered: 2 assignments in Class [id = 5249adc785fe9de1a8028c15, name = cs010_13fal] matched your query of {name contains 'Lab1'}, however this API expects 1 assignment. Refine your query and try again.
        Assignment [id = 5249dd3f85fe9d177455ce93, name = Lab1]
        Assignment [id = 5258654785fe9d4df7bc32ef, name = Lab10]
------------------------------------------------------------------------
CRITICAL: The server returned an error of type 'False'.
@itsjohncs
Copy link
Contributor

Damn, this is a regression :(. I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants