also: ケガのこうみょう
expression, noun
fortunate error; lucky break; fluke
An idiomatic expression meaning a mistake or accident that unexpectedly leads to a good result. Often used when a blunder turns into a success.
彼の失敗は怪我の功名で、新しい発見につながった。
His mistake turned out to be a fortunate error and led to a new discovery.
道を間違えたのが怪我の功名で、素敵なカフェを見つけた。
Taking the wrong road was a lucky break; I found a lovely café.