Commit ddf2e95
authored
pythongh-109033: Return filename with os.utime errors (python#109034)
The filename was previously intentionally omitted from exception because
"it might confuse the user". Uncaught exceptions are not generally a
replacement for user-facing error messages, so obscuring this
information only has the effect of making the programmer's life more
difficult.1 parent fd7e08a commit ddf2e95
File tree
3 files changed
+11
-7
lines changed- Lib/test
- Misc/NEWS.d/next/Library
- Modules
3 files changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
913 | 913 | | |
914 | 914 | | |
915 | 915 | | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
916 | 923 | | |
917 | 924 | | |
918 | 925 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6307 | 6307 | | |
6308 | 6308 | | |
6309 | 6309 | | |
6310 | | - | |
6311 | | - | |
6312 | | - | |
6313 | | - | |
6314 | | - | |
| 6310 | + | |
6315 | 6311 | | |
6316 | 6312 | | |
6317 | 6313 | | |
| |||
6351 | 6347 | | |
6352 | 6348 | | |
6353 | 6349 | | |
6354 | | - | |
6355 | | - | |
| 6350 | + | |
6356 | 6351 | | |
6357 | 6352 | | |
6358 | 6353 | | |
| |||
0 commit comments