Skip to content

Lack of clarity on error messages #266

@kuisathaverat

Description

@kuisathaverat

TL;DR

We hit the following error executing a prompt: Error: Exiting due to an error processing the @ command. It was difficult to figure out what the error was about because it is a large prompt. In our case, there was a rule to force the use of a GitHub Action actions/github-script@v7

Expected behavior

There is no reference to the command name that could help identify where the error is. In our case, if the error reported was Error: Exiting due to an error processing the @v7 command, we probably find the issue faster.

Observed behavior

Report proper messages with complete context about the error, not generic error messages.

Action YAML

- name: Run Prompt
  uses: google-github-actions/run-gemini-cli@2a77eb258d8d2447292fd5d9df6e7b49533d4f37
  id: analyze-ci-error
  env:
    GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  with:
    gemini_api_key: ${{ secrets.GEMINI_API_KEY }}
    prompt: |
      Use `actions/github-script@v7` to implement a GitHub Action step to print a hello world.

Log output

Error: Exiting due to an error processing the @ command.
See logs for more details
Error: Process completed with exit code 1.

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions