Commit e98025c
authored
[Blueprints] Preserve more error information on failed fetch (#2946)
## Motivation for the change, related issues
Before this PR a failed fetch would only print surface level error:
```
[WordPress Server Child] Failed to start server: Error: Error when executing the blueprint step #3 ({"step":"installPlugin","pluginData":{"resource":"wordpress.org/plugins","slug":"woocommerce"}}) : Could not download "https://downloads.wordpress.org/plugin/woocommerce.latest-stable.zip".
```
After this PR a failed fetch includes the original error cause and
provides the full error information including the original stack trace.
## Implementation details
Just adds `{ cause: error }`1 parent 10277ed commit e98025c
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
| 392 | + | |
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
| |||
0 commit comments