- The `errorToString` and `asError` utility functions have been added to specifically handle unknown error types. - All `catch (err)` related code uses type guards and `asError`/`errorToString` to avoid direct access to properties. - When functions like `execSync` and `mkdirp` throw and log errors, they are standardized using `errorToString`. - The `smokeTestFail` call already passes the `errorToString(err)` result, ensuring type safety.
errorToStringandasErrorutility functions have been added to specifically handle unknown error types.catch (err)related code uses type guards andasError/errorToStringto avoid direct access to properties.execSyncandmkdirpthrow and log errors, they are standardized usingerrorToString.smokeTestFailcall already passes theerrorToString(err)result, ensuring type safety.