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.engine/src/org/eclipse/birt/chart/factory/Generator.java
RunTimeContext rtc = new RunTimeContext( );
		rtc.setScriptClassLoader( iscl );
		
		final Chart cmRunTime = (Chart) EcoreUtil.copy( model );
		rtc.setULocale( locale != null ? locale : ULocale.getDefault( ) );
		ChartScriptContext csc = new ChartScriptContext( );
		csc.setChartInstance( cmRunTime );
		csc.setExternalContext( externalContext );
		csc.setULocale( rtc.getULocale( ) );
		csc.setLogger( logger );
		rtc.setScriptContext( csc );
		ScriptHandler sh = new ScriptHandler( );
		rtc.setScriptHandler( sh );
		sh.setScriptClassLoader( iscl );
		
		try
		{
			if ( externalContext != null
					&& externalContext.getScriptable( ) != null )
			{
				sh.init( externalContext.getScriptable( ) );
			}
			else
			{
				sh.init( null );
			}
			sh.setRunTimeModel( cmRunTime );
			final String sScriptContent = cmRunTime.getScript( );
			if ( sScriptContent != null )
			{