Reducing the friction of liquid flows on solid surfaces has become an important issue with the development of microfluidics systems, and more generally for the manipulation of fluids at small scales. To achieve high slippage of liquids at walls, the use of gas as a lubricant--such as microbubbles trapped in superhydrophobic surfaces--has been suggested. The effect of microbubbles on the effective boundary condition has been investigated in a number of theoretical studies, which basically show that on flat composite interfaces the magnitude of the slippage is proportional to the periodicity of the gaseous patterns. Recent experiments aiming to probe the effective boundary condition on superhydrophobic surfaces with trapped bubbles have indeed shown high slippage in agreement with these theoretical predictions. Here, we report nanorheology measurements of the boundary flow on a surface with calibrated microbubbles. We show that gas trapped at a solid surface can also act as an anti-lubricant and promote high friction. The liquid-gas menisci have a dramatic influence on the boundary condition, and can turn it from slippery to sticky. It is therefore essential to integrate the control of menisci in fluidic microsystems designed to reduce wall friction.