Exception: SimpleCovMcp::ResultsetNotFoundError

Inherits:
FileError
  • Object
show all
Defined in:
lib/simplecov_mcp/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#original_error

Instance Method Summary collapse

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from SimpleCovMcp::Error

Instance Method Details

#user_friendly_messageObject



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/simplecov_mcp/errors.rb', line 66

def user_friendly_message
  base = "File error: #{message}"

  # Only add helpful tips in CLI and library modes, not MCP mode
  unless SimpleCovMcp.context.mcp_mode?
    base += "\n\n      Try one of the following:\n        - cd to a directory containing coverage/.resultset.json\n        - Specify a resultset: simplecov-mcp -r PATH\n        - Use -h for help: simplecov-mcp -h\n    HELP\n  end\n\n  base\nend\n"