Skip to content

Files

Latest commit

 

History

History
37 lines (24 loc) · 462 Bytes

fatal_error_message.md

File metadata and controls

37 lines (24 loc) · 462 Bytes

Pattern: Missing message for fatalError()

Issue: -

Description

A fatalError() call should have a message.

Examples of correct code:

func foo() {
  fatalError("Foo")
}


func foo() {
  fatalError(x)
}

Examples of incorrect code:

func foo() {
  fatalError("")
}


func foo() {
  fatalError()
}

Further Reading