error message bug fix.

Fixed error message does not show when parameter error in add/edit metrics/complex.