Commit 695e909
authored
Remove hideTempErr to allow downstream users to check for errors like net.ErrClosed (#894)
Since this change
https://github.com/gorilla/websocket/pull/840/files#diff-4f427d2b022907c552328e63f137561f6de92396d7a6e8f6c2ea1bcf0db52654L190-R197
we can no longer determinate if the errors coming from ReadMessage() are
net.ErrClosed for example
Hardcoding the error message is not great option because it may vary
from OS to OS and system locale1 parent d293aa5 commit 695e909
2 files changed
+25
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | 195 | | |
203 | 196 | | |
204 | 197 | | |
| |||
364 | 357 | | |
365 | 358 | | |
366 | 359 | | |
367 | | - | |
368 | 360 | | |
369 | 361 | | |
370 | 362 | | |
| |||
1033 | 1025 | | |
1034 | 1026 | | |
1035 | 1027 | | |
1036 | | - | |
| 1028 | + | |
1037 | 1029 | | |
1038 | 1030 | | |
1039 | 1031 | | |
| |||
1073 | 1065 | | |
1074 | 1066 | | |
1075 | 1067 | | |
1076 | | - | |
| 1068 | + | |
1077 | 1069 | | |
1078 | 1070 | | |
1079 | 1071 | | |
| |||
1096 | 1088 | | |
1097 | 1089 | | |
1098 | 1090 | | |
1099 | | - | |
| 1091 | + | |
1100 | 1092 | | |
1101 | 1093 | | |
1102 | 1094 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
0 commit comments