Most likely you have a bad parking brake switch. However, you can only get a general electrical failure fault if one of the wires is open. I would verify integrity of the wiring from the switch all the way back to the BPM, if every checks good, replace the switch.