Sha256: d4de7f16cfe01ea1641be96092a6688ed957dfc4c5107f3871acfabd68b3c9e6

Contents?: true

Size: 387 Bytes

Versions: 3

Compression:

Stored size: 387 Bytes

Contents

class Diagnostic::Fatal < Diagnostic::Base
  def self.display_alert_message
    '<h3 class="error">Something went wrong.</br>'\
    'Consistency is checked between remaining nodes if applicable.</h3>'
  end

  def self.message msg, opts = {}
    node = opts[:node] || Diagnostic::Node.my_ip
    type = opts[:type] || 'RuntimeError'
    {name => {node => {type => error(msg)}}}
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
marty-1.1.8 app/models/diagnostic/fatal.rb
marty-1.1.7 app/models/diagnostic/fatal.rb
marty-1.1.6 app/models/diagnostic/fatal.rb