fixed gub

error pointer needs to be *error