Raise descriptive error if no block supplied to with_scope