use my_get_err_msg() instead of ER() for embedded. refs #1964