Get/set/delete trusted users. Tweak friends list struct

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-07-03 00:51:55 -04:00
parent 12e801f83c
commit 6ffcf70090
5 changed files with 227 additions and 63 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ type RedditError struct {
}
func (e *RedditError) Error() string {
return fmt.Sprintf("%s: %s because of field %q", e.Label, e.Reason, e.Field)
return fmt.Sprintf("field %q caused %s: %s", e.Field, e.Label, e.Reason)
}
// UnmarshalJSON implements the json.Unmarshaler interface.