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/script/ScriptHandler.java
public static final Object callFunction( ScriptHandler sh,
			String sFunction, Object oArg1 )
	{
		if ( sh == null )
		{
			return null;
		}
		if ( sh.javahandler != null && sh.isJavaFuntion( sFunction ) )
		{
			sh.ONE_ELEMENT_ARRAY[0] = oArg1;
			return sh.callJavaFunction( sFunction, sh.ONE_ELEMENT_ARRAY );
		}
		else
		{
			final Function f = sh.getJavascriptFunction( sFunction );
			if ( f != null )
			{
				sh.ONE_ELEMENT_ARRAY[0] = oArg1;
				Object oReturnValue = null;
				try
				{
					oReturnValue = sh.callJavaScriptFunction( f,
							sh.ONE_ELEMENT_ARRAY );
				}
				catch ( ChartException jsx )
				{
					logger.log( jsx );
				}
				return oReturnValue;
			}