Commit d2696ae
committed
Add __str__ to ErrorCategory enum for clean string representation
- Return self.value from ErrorCategory.__str__ so formatted strings
like f"failed:{category}" produce "failed:permission" instead of
"failed:ErrorCategory.PERMISSION"1 parent bc1312e commit d2696ae
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
0 commit comments