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 += <<~HELP


      Try one of the following:
        - cd to a directory containing coverage/.resultset.json
        - Specify a resultset: simplecov-mcp -r PATH
        - Use -h for help: simplecov-mcp -h
    HELP
  end

  base
end