Bugfix: correctly catch error in interval-based builder