The latter is the best option, IMO, -- just let the caller handler the return value. No need to have any visualization logic in this function.