Bug 140620 Chart scripting errors are ignored
Write a chart with an invalid script, the execution simply ignores the script. This makes it difficult to debug scripting. The error message is also not precise and needs improvements.
engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/HTMLReportEmitter.java
-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.engine.emitter.IContentEmitter#startImage(org.eclipse.birt.report.engine.content.IImageContent)
	 *
	public void startImage( IImageContent image )
	{
		assert image != null;
		IStyle mergedStyle = image.getStyle( );
		 peek( mergedStyle ) )
		{
			return;
		}
		logger.log( Level.FINE, "[HTMLImageEmitter] Start image" );  
		Object generateBy = image.getGenerateBy( );
		
		 include select handle chart
		boolean isSelectHandleTableChart = false;
		 renderOption != null && renderOption instanceof HTMLRenderOption )
		{
			HTMLRenderOption htmlOption = (HTMLRenderOption) renderOption;
			
			 htmlOption.getIncludeSelectionHandle( )
					&& generateBy instanceof ExtendedItemDesign )
			{
				startSelectHandleTableChart( image );
				isSelectHandleTableChart = true;
			}
		}		
		StringBuffer styleBuffer = new StringBuffer( );
		int display = checkElementType( image.getX( ), image.getY( ),
				mergedStyle, styleBuffer );
		String tag = openTagByType( display, DISPLAY_BLOCK );
		 action
		boolean hasAction = handleAction( image.getHyperlinkAction( ) );
		String imgUri = getImageURI( image );
		boolean useSVG = ( image.getMIMEType( ) != null )
				&& image.getMIMEType( ).equalsIgnoreCase( "imagesvg+xml" ); 
		 useSVG )
		{  u
			writer.openTag( HTMLTags.TAG_EMBED );
			
			String b = image.getB( );				
			
			 !isSelectHandleTableChart )
			{
				 b == null )
				{
					b = generateUniqueID( );
					image.setB( b );
				}
				setB( HTMLTags.ATTR_IMAGE, b ); 
				 If the image is a chart, add it to active id list, and output type ��iid to html
				setActiveIDTypeIID(image);
				
			}
			else
			{
				b = generateUniqueID( );
				setB( HTMLTags.ATTR_IMAGE, b ); 
			}
			
				onresize gives the SVG a change to change its content
			ttribute( "onresize", b+".reload()"); 
			
			ttribute( HTMLTags.ATTR_TYPE, "imagesvg+xml" ); 
			ttribute( HTMLTags.ATTR_SRC, imgUri );
			setStyleName( image.getStyleClass( ) );
			StringBuffer buffer