How would you accumulate errors?

This looks like what I was doing in Java, where functional programming idioms are at last available. I was hoping there were a macro or special form like with that might accomplish what that reduce is doing there. I’m still learning the bare basics. Thank you!