[galaxy-dev] code example for improved error handling