-
Notifications
You must be signed in to change notification settings - Fork 19
Commit c90c46f
feat: throw and catch error when calls to cloudinary upload fails (#72)
# Description
<!-- Include a summary of the change made and also list the dependencies
that are required if any -->
Catch errors when using cloudinary uploader. Throw in the lib catch
during build and log them .
## Issue Ticket Number
Fixed #58

## Type of change
<!-- Please select all options that are applicable. -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update
# Checklist
<!-- These must all be followed and checked. -->
- [X] I have followed the contributing guidelines of this project as
mentioned in [CONTRIBUTING.md](/CONTRIBUTING.md)
- [X] I have created an
[issue](https://github.com/colbyfayock/netlify-plugin-cloudinary/issues)
ticket for this PR
- [X] I have checked to ensure there aren't other open [Pull
Requests](https://github.com/colbyfayock/netlify-plugin-cloudinary/pulls)
for the same update/change?
- [X] I have performed a self-review of my own code
- [X] I have run tests locally to ensure they all pass
- [X] I have commented my code, particularly in hard-to-understand areas
- [X] I have made corresponding changes needed to the documentation1 parent f39cf30 commit c90c46f
File tree
4 files changed
+136
-89
lines changed- netlify-plugin-cloudinary
- src
- data
- lib
- tests/lib
4 files changed
+136
-89
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | - | ||
2 | - | ||
3 | - | ||
4 | - | ||
1 | + | ||
2 | + | ||
3 | + | ||
5 | 4 | | |
6 | - | ||
7 | - | ||
8 | - | ||
9 | - | ||
10 | - | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | + | ||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| |||
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
121 | - | ||
122 | + | ||
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
143 | + | ||
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| |||
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
187 | + | ||
185 | 188 | | |
186 | 189 | | |
187 | 190 | | |
| |||
219 | 222 | | |
220 | 223 | | |
221 | 224 | | |
222 | - | ||
223 | - | ||
224 | - | ||
225 | - | ||
226 | - | ||
227 | - | ||
228 | - | ||
225 | + | ||
229 | 226 | | |
230 | 227 | | |
231 | 228 | | |
| |||
236 | 233 | | |
237 | 234 | | |
238 | 235 | | |
239 | - | ||
240 | - | ||
241 | - | ||
242 | - | ||
243 | - | ||
244 | - | ||
245 | - | ||
236 | + | ||
237 | + | ||
238 | + | ||
239 | + | ||
240 | + | ||
241 | + | ||
242 | + | ||
243 | + | ||
244 | + | ||
245 | + | ||
246 | 246 | | |
247 | - | ||
247 | + | ||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | - | ||
265 | - | ||
264 | + | ||
266 | 265 | | |
267 | 266 | | |
268 | 267 | | |
| |||
271 | 270 | | |
272 | 271 | | |
273 | 272 | | |
274 | - | ||
275 | - | ||
276 | - | ||
277 | - | ||
278 | - | ||
279 | - | ||
280 | - | ||
281 | - | ||
282 | - | ||
283 | - | ||
284 | - | ||
285 | - | ||
286 | - | ||
287 | - | ||
288 | - | ||
289 | - | ||
290 | - | ||
291 | - | ||
292 | - | ||
293 | - | ||
294 | - | ||
295 | - | ||
296 | - | ||
297 | - | ||
298 | - | ||
299 | - | ||
273 | + | ||
274 | + | ||
275 | + | ||
276 | + | ||
277 | + | ||
278 | + | ||
279 | + | ||
280 | + | ||
281 | + | ||
282 | + | ||
283 | + | ||
284 | + | ||
285 | + | ||
286 | + | ||
287 | + | ||
288 | + | ||
289 | + | ||
290 | + | ||
291 | + | ||
292 | + | ||
293 | + | ||
294 | + | ||
295 | + | ||
296 | + | ||
297 | + | ||
298 | + | ||
299 | + | ||
300 | 300 | | |
301 | 301 | | |
302 | - | ||
302 | + | ||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | - | ||
317 | + | ||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | + | ||
334 | 335 | | |
335 | 336 | | |
336 | 337 | | |
| |||
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
396 | + | ||
397 | + | ||
395 | 398 | | |
396 | - | ||
397 | - | ||
398 | - | ||
399 | - | ||
400 | - | ||
401 | - | ||
399 | + | ||
400 | + | ||
401 | + | ||
402 | + | ||
403 | + | ||
404 | + | ||
405 | + | ||
406 | + | ||
407 | + | ||
408 | + | ||
409 | + | ||
410 | + | ||
402 | 411 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | - | ||
8 | + | ||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | - | ||
98 | + | ||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | - | ||
158 | + | ||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | - | ||
163 | - | ||
164 | - | ||
162 | + | ||
163 | + | ||
164 | + | ||
165 | + | ||
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
209 | - | ||
210 | - | ||
211 | - | ||
210 | + | ||
211 | + | ||
212 | + | ||
213 | + | ||
214 | + | ||
215 | + | ||
216 | + | ||
217 | + | ||
218 | + | ||
212 | 219 | | |
213 | 220 | | |
214 | 221 | | |
215 | - | ||
216 | - | ||
217 | - | ||
218 | - | ||
219 | - | ||
220 | - | ||
221 | - | ||
222 | - | ||
222 | + | ||
223 | + | ||
224 | + | ||
225 | + | ||
226 | + | ||
227 | + | ||
228 | + | ||
229 | + | ||
230 | + | ||
231 | + | ||
232 | + | ||
233 | + | ||
234 | + | ||
223 | 235 | | |
224 | 236 | | |
225 | 237 | | |
| |||
340 | 352 | | |
341 | 353 | | |
342 | 354 | | |
343 | - | ||
344 | - | ||
345 | - | ||
346 | - | ||
347 | - | ||
348 | - | ||
349 | - | ||
350 | - | ||
355 | + | ||
356 | + | ||
357 | + | ||
358 | + | ||
359 | + | ||
360 | + | ||
361 | + | ||
362 | + | ||
363 | + | ||
364 | + | ||
365 | + | ||
366 | + | ||
367 | + | ||
368 | + | ||
369 | + | ||
370 | + | ||
371 | + | ||
372 | + | ||
373 | + | ||
351 | 374 | | |
352 | 375 | | |
353 | 376 | | |
| |||
397 | 420 | | |
398 | 421 | | |
399 | 422 | | |
400 | - | ||
423 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | - | ||
1 | + | ||
2 | + | ||
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | - | ||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | ||
106 | + | ||
107 | + | ||
108 | + | ||
109 | + | ||
110 | + | ||
111 | + | ||
112 | + | ||
113 | + | ||
98 | 114 | | |
99 | 115 | | |
100 | 116 | | |
| |||
0 commit comments