TRUNK-2280: Latest changes made for displaying a user friendly error message when number of characters exceed 1024

Our code convention is that the '{' is on the same line as the if clause