shadagali03 / Canvas_CLI

Creating a tool that will submit assignments through the terminal to your Canvas account
1 stars 0 forks source link

better error handling for assignments #7

Open ezrizhu opened 11 months ago

ezrizhu commented 11 months ago
eric in ide0 in Canvas_CLI/target/debug on  main
λ ./canvas_cli courses
Course Code               Course Name                                        Course ID
<snip>
2023F CS-382 A/B/C/D      Computer Architecture and Organization             66723
<snip>

eric in ide0 in Canvas_CLI/target/debug on  main
λ ./canvas_cli assignments 66723
Application error: Error: Invalid Course ID

This should work, and the course ID should be valid, it'd be useful to see the error that the API is returning.

ezrizhu commented 11 months ago

I can work on this, would you like me to make a PR for this?