Commit b15a1cb
authored
fix(create-twilio-function): handle rimraf failing (#400)
Received a report that creating a new project had failed for a developer
and then the cleanup task didn't end. There was an issue with deleting
the files that had been created which threw an unhandled error in the
cleanUpAndExit function leading to the spinner never stopping.
This adds a try/catch/finally around rimraf in cleanUpAndExit to ensure
that it does indeed exit.1 parent e95e726 commit b15a1cb
File tree
1 file changed
+10
-3
lines changed- packages/create-twilio-function/src
1 file changed
+10
-3
lines changedLines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
37 | 44 | | |
38 | 45 | | |
39 | 46 | | |
| |||
0 commit comments