You've got the right idea, and, I think, even a format that would work.
Personally when needing something like that, I use this format:
set $+(%,failedchan,.,$2) $2