vb: return meaningful error codes.