Commit 199f871
committed
Improved error messages for module loading failures.
There are several reasons why a file cannot be opened. Without
extra information, especially in containerized environments, these
problems are difficult to debug. Adding errno status to the
error output helps identify the root cause.
Additionally, error messages are now aligned between njs and QuickJS.1 parent 1b2a339 commit 199f871
File tree
6 files changed
+26
-10
lines changed- nginx
- src
- test
- test
6 files changed
+26
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1979 | 1979 | | |
1980 | 1980 | | |
1981 | 1981 | | |
| 1982 | + | |
1982 | 1983 | | |
1983 | 1984 | | |
1984 | | - | |
1985 | | - | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
1986 | 1991 | | |
1987 | 1992 | | |
1988 | 1993 | | |
| |||
3764 | 3769 | | |
3765 | 3770 | | |
3766 | 3771 | | |
| 3772 | + | |
3767 | 3773 | | |
3768 | 3774 | | |
| 3775 | + | |
| 3776 | + | |
| 3777 | + | |
| 3778 | + | |
| 3779 | + | |
3769 | 3780 | | |
3770 | 3781 | | |
3771 | 3782 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8114 | 8114 | | |
8115 | 8115 | | |
8116 | 8116 | | |
8117 | | - | |
| 8117 | + | |
8118 | 8118 | | |
8119 | 8119 | | |
8120 | 8120 | | |
| |||
8124 | 8124 | | |
8125 | 8125 | | |
8126 | 8126 | | |
8127 | | - | |
| 8127 | + | |
8128 | 8128 | | |
8129 | 8129 | | |
8130 | 8130 | | |
8131 | 8131 | | |
8132 | 8132 | | |
8133 | | - | |
| 8133 | + | |
| 8134 | + | |
| 8135 | + | |
| 8136 | + | |
8134 | 8137 | | |
8135 | 8138 | | |
8136 | 8139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18975 | 18975 | | |
18976 | 18976 | | |
18977 | 18977 | | |
18978 | | - | |
| 18978 | + | |
18979 | 18979 | | |
18980 | 18980 | | |
18981 | 18981 | | |
| |||
19045 | 19045 | | |
19046 | 19046 | | |
19047 | 19047 | | |
19048 | | - | |
| 19048 | + | |
19049 | 19049 | | |
19050 | 19050 | | |
19051 | 19051 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
0 commit comments