logging the error raised by gm