[ library_proto ] - add trap_err