gtruby: correct use of gterror()