rxDemoteAddErr function

Demote the error type