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.
chart/org.eclipse.birt.chart.device.swt/src/org/eclipse/birt/chart/device/swt/SwtRendererImpl.java
final Color cPreviousBG = _gc.getBackground( );
			Color cFG = (Color) _ids.getColor( cdStart );
			Color cBG = (Color) _ids.getColor( cdEnd );
			final boolean bVertical = ( g.getDirection( ) < -45 || g.getDirection( ) > 45 );
			final boolean bSwapped = ( g.getDirection( ) > 45 );
			if ( bSwapped )
			{
				final Color c = cFG;
				cFG = cBG;
				cBG = c;
			}
			_gc.setForeground( cFG );
			_gc.setBackground( cBG );
			R31Enhance.setAlpha( _gc, g );
			_gc.fillGradientRectangle( r.x, r.y, r.width, r.height, bVertical );
			_gc.setForeground( cPreviousFG );
			_gc.setBackground( cPreviousBG );
			cFG.dispose( );
			cBG.dispose( );
		}
		else if ( flBackground instanceof org.eclipse.birt.chart.model.attribute.Image )
		{
			org.eclipse.swt.graphics.Image img = null;
			if ( flBackground instanceof EmbeddedImage )
			{
				try
				{
					ByteArrayInputStream bis = new ByteArrayInputStream( Base64.decodeBase64( ( (EmbeddedImage) flBackground ).getData( )
							.getBytes( ) ) );
					img = new org.eclipse.swt.graphics.Image( ( (SwtDisplayServer) _ids ).getDevice( ),