Closed colinrotherham closed 12 months ago
This PR helped me find and fix an issue in https://github.com/alphagov/govuk-prototype-kit/pull/2306
Before that I was stuck with this error in the terminal:
Error: ENOENT: no such file or directory, open '/private/var/folders/2k/ws6lqbf57d75yf8xt7tt_bqc0000gn/T/test-prototype/.tmp/errors.json'
My issue had crashed early enough to confirm:
flagError()
writeJsonSync(errorPath, { error })
This PR stops that from happening
This PR helped me find and fix an issue in https://github.com/alphagov/govuk-prototype-kit/pull/2306
Before that I was stuck with this error in the terminal:
My issue had crashed early enough to confirm:
flagError()
can run before .tmp directory existswriteJsonSync(errorPath, { error })
This PR stops that from happening