Commit 13ac77a
committed
Improve error logging
Example output when specifying a non-existent template file:
```
❯ pdfbaker bake examples/examples.yml
INFO: Processing document "minimal" from /home/danny/src/pdfbaker/examples/minimal...
INFO: Processing document "regular" from /home/danny/src/pdfbaker/examples/regular...
ERROR: Failed to process document 'regular': 'introDOESNOTEXIST.svg.j2' not found in search path: '/home/danny/src/pdfbaker/examples/regular/templates'
INFO: Processing document "variants" from /home/danny/src/pdfbaker/examples/variants...
INFO: Processing variant "Basic"...
INFO: Processing variant "Premium"...
INFO: Processing variant "Enterprise"...
INFO: Processing document "custom_processing" from /home/danny/src/pdfbaker/examples/custom_processing...
INFO: Done.
INFO: PDF files created in /home/danny/src/pdfbaker/examples/dist
WARNING: There were errors.
❯ pdfbaker bake -q examples/examples.yml
ERROR: Failed to process document 'regular': 'introDOESNOTEXIST.svg.j2' not found in search path: '/home/danny/src/pdfbaker/examples/regular/templates'
~/src/pdfbaker on main ⇡1 !4
```1 parent c82faa8 commit 13ac77a
3 files changed
+38
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
67 | 76 | | |
68 | 77 | | |
69 | 78 | | |
70 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
71 | 88 | | |
72 | 89 | | |
73 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
153 | | - | |
154 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
155 | 162 | | |
156 | 163 | | |
157 | 164 | | |
158 | 165 | | |
159 | 166 | | |
160 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
161 | 172 | | |
162 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
163 | 178 | | |
164 | 179 | | |
165 | 180 | | |
| |||
168 | 183 | | |
169 | 184 | | |
170 | 185 | | |
171 | | - | |
| 186 | + | |
172 | 187 | | |
173 | 188 | | |
174 | 189 | | |
| |||
0 commit comments