<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "BitcoinKernel",
  "identifier" : "/documentation/BitcoinKernel/BlockchainSync/Update/State-swift.enum/failed(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "BitcoinKernel"
    ],
    "preciseIdentifier" : "s:13BitcoinKernel14BlockchainSyncV6UpdateV5StateO6failedyAGSScAGmF"
  },
  "title" : "BlockchainSync.Update.State.failed(_:)"
}
-->

# BlockchainSync.Update.State.failed(_:)

Sync stopped due to an error. The associated `String` is a
human-readable reason for UI / logs (e.g.,
`"fetching block at height 523: … not found"`). Terminal.

```
case failed(String)
```

## Discussion

Errors caught from a [`BlockSource`](/documentation/BitcoinKernel/BlockSource) conformer are wrapped
with the operation context before reaching this case; raw
error values are not preserved here. Catch [`BlockSourceError`](/documentation/BitcoinKernel/BlockSourceError)
at the source itself if you need typed handling.