track: Return ErrorType instead of int