Skip to content

Commit

Permalink
Log expected/invalid param sfo header when we have an invalid header
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden committed Aug 26, 2024
1 parent 5661bce commit fda6b31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Refresher/Verification/ParamSfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ public ParamSfo(Stream stream)
if (header[i] == headerToMatch[i])
continue;

throw new InvalidDataException("Magic header does not match the expected data from a typical PARAM.SFO file!");
string headerToMatchStr = Encoding.ASCII.GetString(header);
string headerStr = Encoding.ASCII.GetString(header);
throw new InvalidDataException($"Magic header does not match the expected data from a typical PARAM.SFO file! Expected '{headerToMatchStr}', got '{headerStr}'");
}

this.Version = reader.ReadUInt32();
Expand Down

0 comments on commit fda6b31

Please sign in to comment.