Update & bug fix

Update `get_error`, `get_error_message` and `get_error_field`
functions. Bug fixed at `num_lt` and `num_gt` functions.