Converted set_error() to the new design.
Authored by: bugman 2008-09-26
Parent: [r7389]
Child: [r7391]