Implemented the pcs.set_error user function.
Authored by: bugman 2013-01-18
Parent: [r18216]
Child: [r18218]