Throw an error instead of silently failing