Skip to content

Commit

Permalink
Improved 'Magic Number' Error Descriptions
Browse files Browse the repository at this point in the history
This should allow users to better understand what can be done to address the issue.
  • Loading branch information
dinesharjani committed Sep 7, 2023
1 parent 85b6bed commit eb7abcb
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 eb7abcb

Please sign in to comment.