As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
First flight from CHO-RH Bleed air light on in flight. RH Engine shut down, emergency declared. Aircraft diverted to PHL, landing was uneventful. MX T/S/Bleed Air indicating system IAW SAAB AMM 36-00-00 Fault Isolation. Found slight corrosion and moister on connector at fire loop fuselage and flap swing down panel. Cleaned connector and replaced corroded washer. OP's check good.