Create a generic GetError() function in game-gui that returns the last error returned by a call to some other function in game-gui