Skip to content

Commit f64d936

Browse files
committed
Add "File may be corrupted!" to sha1 diff error
1 parent cb38207 commit f64d936

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/handler.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,8 @@ void setTonieboxSettings(TonieFreshnessCheckResponse *freshResp, settings_t *set
464464
freshResp->slap_en = settings->toniebox.slap_enabled;
465465
freshResp->slap_dir = settings->toniebox.slap_back_left;
466466
freshResp->led = settings->toniebox.led;
467-
if (settings->toniebox.overrideFields) {
467+
if (settings->toniebox.overrideFields)
468+
{
468469
freshResp->field2 = settings->toniebox.field2;
469470
freshResp->field6 = settings->toniebox.field6;
470471
}
@@ -612,7 +613,7 @@ void readTrackPositions(tonie_info_t *tonieInfo, FsFile *file)
612613
{
613614
if (!isValidTaf(tonieInfo->contentPath, true))
614615
{
615-
TRACE_ERROR("SHA1 not valid or length different for TAF %s\r\n", tonieInfo->contentPath);
616+
TRACE_ERROR("SHA1 not valid or length different for TAF %s. File may be corrupted!\r\n", tonieInfo->contentPath);
616617
}
617618
}
618619
}

src/toniefile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ error_t toniefile_close(toniefile_t *ctx)
364364

365365
if (!isValidTaf(ctx->fullPath, true))
366366
{
367-
TRACE_ERROR("SHA1 not valid or length different for TAF %s\r\n", ctx->fullPath);
367+
TRACE_ERROR("SHA1 not valid or length different for TAF %s. File may be corrupted!\r\n", ctx->fullPath);
368368
}
369369

370370
osFreeMem(ctx->taf.sha1_hash.data);

0 commit comments

Comments
 (0)