Skip to content

Commit

Permalink
Move comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mcantelon committed Nov 6, 2024
1 parent 6138e75 commit e97206b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/workflow/processing.go
Original file line number Diff line number Diff line change
Expand Up @@ -1241,9 +1241,9 @@ func (w *ProcessingWorkflow) validatePREMIS(
XSDPath: w.cfg.ValidatePREMIS.XSDPath,
}).Get(activityOpts, &xmlvalidateResult)

// Allow PREMIS XML to not exist without failing workflow.
if err != nil {
if strings.Contains(err.Error(), fmt.Sprintf("%s: no such file or directory", xmlPath)) {
// Allow PREMIS XML to not exist without failing workflow.
err = nil
} else {
pt.Status = enums.PreservationTaskStatusError
Expand Down

0 comments on commit e97206b

Please sign in to comment.