Skip to content

Commit

Permalink
Merge pull request #124 from dinesharjani/magic-number-description
Browse files Browse the repository at this point in the history
Improved 'Magic Number' Error Descriptions
  • Loading branch information
dinesharjani authored Sep 7, 2023
2 parents 85b6bed + eb7abcb commit 2501419
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/McuMgrImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,13 @@ extension McuMgrImageParseError: LocalizedError {
public var errorDescription: String? {
switch self {
case .invalidHeaderMagic:
return "Invalid header magic number."
return "Invalid Header Magic Number. Are You Trying to DFU an Image That Has Not Been Properly Signed?"
case .invalidTlvInfoMagic:
return "Invalid TLV Info magic number."
return "Invalid TLV Info Magic Number. Are You Trying to DFU an Image That Has Not Been Properly Signed Again?"
case .insufficientData:
return "Insufficient data."
return "Insufficient Data."
case .hashNotFound:
return "Hash not found."
return "Hash Not Found."
}
}

Expand Down

0 comments on commit 2501419

Please sign in to comment.