in reply to Catching GD warning

Look at error trapping here: eval