Exception: WPScan::Error::ChecksumsMismatch
- Defined in:
- lib/wpscan/errors/update.rb
Instance Attribute Summary collapse
-
#cf_ray ⇒ Object
readonly
Returns the value of attribute cf_ray.
-
#db_file ⇒ Object
readonly
Returns the value of attribute db_file.
Instance Method Summary collapse
-
#initialize(db_file, cf_ray: nil) ⇒ ChecksumsMismatch
constructor
A new instance of ChecksumsMismatch.
- #to_s ⇒ Object
Constructor Details
#initialize(db_file, cf_ray: nil) ⇒ ChecksumsMismatch
Returns a new instance of ChecksumsMismatch.
15 16 17 18 19 |
# File 'lib/wpscan/errors/update.rb', line 15 def initialize(db_file, cf_ray: nil) @db_file = db_file @cf_ray = cf_ray super() end |
Instance Attribute Details
#cf_ray ⇒ Object (readonly)
Returns the value of attribute cf_ray.
13 14 15 |
# File 'lib/wpscan/errors/update.rb', line 13 def cf_ray @cf_ray end |
#db_file ⇒ Object (readonly)
Returns the value of attribute db_file.
13 14 15 |
# File 'lib/wpscan/errors/update.rb', line 13 def db_file @db_file end |
Instance Method Details
#to_s ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/wpscan/errors/update.rb', line 21 def to_s msg = "#{db_file}: checksums do not match. Please try again in a few minutes." msg += "\nCloudflare Ray ID: #{cf_ray}" if cf_ray msg += "\nIf this issue persists, you can:\n " \ "- Check our status page at https://status.wpscan.com/\n " \ "- Contact us via https://wpscan.com/contact/ (please include the Ray ID above if any)\n " \ '- Or open a GitHub issue at https://github.com/wpscanteam/wpscan/issues' msg end |