zakkak / turnin

turnin is a utility that enables students to turnin assignments using the command line. Requires a setup where each class has a unix account in the computer infrastructure of the school/university.
GNU General Public License v3.0
15 stars 8 forks source link

Improve error messages #43

Closed daknob closed 2 years ago

daknob commented 2 years ago

The following line:

https://github.com/zakkak/turnin/blob/d2b800db86f2ece3d160ea7e9466e52738b79d38/src/turnin.c#L235

as well as this:

https://github.com/zakkak/turnin/blob/d2b800db86f2ece3d160ea7e9466e52738b79d38/src/turnin.c#L255

lack the class and user parts of the error message.

It's a quick PR to add them, and make error reporting better :)

alx01011 commented 2 years ago

@daknob Is a string format such as classx: userx: setuid: error acceptable?

daknob commented 2 years ago

I think so. Even seteuid: class and seteuid: user without any variables are better than this :)

zakkak commented 2 years ago

Closed by #51