I prefer `'axis(=%d) out of bounds' % axis` which is the standard numpy message.