Commit 60ec21a
committed
feat(server, html2pdf): implement better error reporting when Chrome is not found
**WHAT:**
This change improves the error message when the StrictDoc web server
cannot find a Chrome installation on the system it is running on.
**WHY:**
Before this change, the error message was a simple Internal Server Error
without an explicit indication that the Chrome could not be found.
**HOW:**
This integrates the upstream html2pdf4doc work where the error reporting
was improved at the main.py driver program.
In particular, the driver now exits with a specific exit code
`COULD_NOT_FIND_CHROME = 5` that we can rely on in StrictDoc to identify
the missing Chrome issue.
strictdoc-project/html2pdf4doc_python#58
strictdoc-project/html2pdf4doc_python#701 parent 8f47295 commit 60ec21a
File tree
3 files changed
+52
-10
lines changed- strictdoc
- export/html2pdf
- server/routers
3 files changed
+52
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
13 | 37 | | |
14 | 38 | | |
15 | 39 | | |
| |||
52 | 76 | | |
53 | 77 | | |
54 | 78 | | |
55 | | - | |
| 79 | + | |
56 | 80 | | |
57 | | - | |
58 | | - | |
| 81 | + | |
| 82 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
134 | 137 | | |
135 | 138 | | |
136 | 139 | | |
137 | | - | |
| 140 | + | |
138 | 141 | | |
139 | 142 | | |
140 | 143 | | |
| |||
2158 | 2161 | | |
2159 | 2162 | | |
2160 | 2163 | | |
2161 | | - | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
2162 | 2180 | | |
2163 | | - | |
2164 | | - | |
| 2181 | + | |
| 2182 | + | |
2165 | 2183 | | |
2166 | 2184 | | |
2167 | 2185 | | |
| |||
0 commit comments