get_error_details procedure

Signed-off-by: MwangiKevin <mwangikevinn@gmail.com>