Hopefully you measured the chain generously. If you're lucky the only damaged link is the outer link where it snapped, and you can carefully punch out the other end and replace it with the connector. If you were unlucky, you might need to cut out an extra pair of links before connecting it, which is when not cutting the chain as short as possible comes in handy.
If the chain is now too short, you can splice in an extension - as little as one inner link - using another connector.
__________________
FB
Chain-L site
An ounce of diagnosis is worth a pound of cure.
Just because I'm tired of arguing, doesn't mean you're right.
“One accurate measurement is worth a thousand expert opinions” - Adm Grace Murray Hopper - USN
WARNING, I'm from New York. Thin skinned people should maintain safe distance.