Method: Fastlane::Runner#set_error

Defined in:
fastlane/lib/fastlane/runner.rb

#set_error(platform, block) ⇒ Object



343
344
345
346
347
348
# File 'fastlane/lib/fastlane/runner.rb', line 343

def set_error(platform, block)
  unless error_blocks[platform].nil?
    UI.error("You defined multiple `error` blocks in your `Fastfile`. The last one being set will be used.")
  end
  error_blocks[platform] = block
end