update markBroken with a error defined by a string