Fix failed to to cannot

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-10-29 19:28:02 +01:00
parent 2766f8e423
commit 6f2bd9c92f
39 changed files with 198 additions and 192 deletions

View File

@@ -41,7 +41,7 @@ func (dc *DocumentClassification) Scan(value interface{}) error {
case []byte:
sv = string(v)
default:
return fmt.Errorf("failed to scan DocumentClassification: expected string or []byte, got %T", value)
return fmt.Errorf("cannot scan DocumentClassification: expected string or []byte, got %T", value)
}
*dc = DocumentClassification(sv)

View File

@@ -434,7 +434,7 @@ WHERE
_, err := conn.Exec(ctx, q, args)
if err != nil {
return fmt.Errorf("failed to delete evidence: %w", err)
return fmt.Errorf("cannot delete evidence: %w", err)
}
return nil

View File

@@ -219,13 +219,13 @@ RETURNING report_file_id
err := conn.QueryRow(ctx, q, args).Scan(&vcrFileId)
if err != nil {
return fmt.Errorf("failed to delete vendor compliance report: %w", err)
return fmt.Errorf("cannot delete vendor compliance report: %w", err)
}
if vcrFileId != nil {
file := &File{ID: *vcrFileId}
if err = file.SoftDelete(ctx, conn, scope); err != nil {
return fmt.Errorf("failed to soft delete vendor compliance file: %w", err)
return fmt.Errorf("cannot soft delete vendor compliance file: %w", err)
}
}
return nil