Commit 8250712
committed
🤖 Check workdir exists before spawning in LocalRuntime
Root cause of 'spawn bash ENOENT' was that the working directory
didn't exist when spawn() was called. Node.js throws ENOENT when
you try to spawn with a non-existent cwd.
Now we check if the workdir exists before spawning and throw a clear
error message if it doesn't. This prevents confusing ENOENT errors.1 parent 7def2f3 commit 8250712
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
39 | 52 | | |
40 | 53 | | |
41 | 54 | | |
| |||
48 | 61 | | |
49 | 62 | | |
50 | 63 | | |
51 | | - | |
| 64 | + | |
52 | 65 | | |
53 | 66 | | |
54 | 67 | | |
| |||
0 commit comments