Skip to content

Improve error message clarity - #1351

Open
lmvysakh wants to merge 1 commit into
actions:mainfrom
lmvysakh:update_error_message
Open

Improve error message clarity#1351
lmvysakh wants to merge 1 commit into
actions:mainfrom
lmvysakh:update_error_message

Conversation

@lmvysakh

Copy link
Copy Markdown
Contributor

Description:
Updates the error message to provide clearer information to users.

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

Copilot AI lite review requested due to automatic review settings August 19, 2026 10:09
@lmvysakh
lmvysakh requested a review from a team as a code owner August 19, 2026 10:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the cache-miss dependency error message emitted by the cache distributor to include the active package manager and provide clearer next-step guidance for users of the action.

Changes:

  • Expanded the thrown error message when no dependency file is found to include packageManager context and remediation guidance.
  • Regenerated the compiled dist/ bundles to reflect the source change.
  • Updated the cache restore test assertion to match the new error text.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.

File Description
src/cache-distributions/cache-distributor.ts Updates the runtime error message for missing dependency-file matches.
dist/setup/index.js Updates the bundled setup entrypoint to include the new error message.
dist/cache-save/index.js Updates the bundled cache-save entrypoint to include the new error message.
tests/cache-restore.test.ts Adjusts the expected thrown error string to match the new message.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants