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/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java
{
		return params;
	}
	/**
	 * Loads scripts that are stored in an external file. Used to support
	 * include-script. Each script file should be load only once. and the script
	 * in the file must be encoded in UTF-8.
	 * 
	 * @param fileName
	 *            script file name
	 */
	public void loadScript( String fileName )
	{
		ReportDesignHandle reportDesign = this.getDesign( );
		if ( reportDesign != null )
		{
			URL url = reportDesign.findResource( fileName,
					IResourceLocator.LIBRARY );
			if ( url != null )
			{
				fileName = url.getFile( );
			}
		}
		File scriptFile = new File( fileName );
		
		try
		{
			FileInputStream in = new FileInputStream( scriptFile );
			ByteArrayOutputStream out = new ByteArrayOutputStream( );
			byte[] buffer = new byte[1024];