Create an enhanced error with OCF diff information.
Error message
Array of diff descriptions from diffOcfObjects
The ledger/source OCF data
The database/destination OCF data
An OcfMismatchError with the diff information attached
const diffs = diffOcfObjects(ledgerData, dbData);if (diffs.length > 0) { throw createOcfMismatchError('OCF data mismatch', diffs, ledgerData, dbData);} Copy
const diffs = diffOcfObjects(ledgerData, dbData);if (diffs.length > 0) { throw createOcfMismatchError('OCF data mismatch', diffs, ledgerData, dbData);}
Create an enhanced error with OCF diff information.