Skip to content

[Feature] Normalize unknown error handling in smoke utilities #2653

@EmmaYuan1015

Description

@EmmaYuan1015
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions