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
{
		this.reportContext = reportContext;
		scriptContext.registerBean( "reportContext", reportContext );
	}
	public void setPageNumber( long pageNo )
	{
		pageNumber = pageNo;
		scriptContext.registerBean( "pageNumber", new Long( pageNumber ) );
		if ( totalPage < pageNumber )
		{
			setTotalPage( pageNumber );
		}
	}
	/**
	 * set the total page.
	 * 
	 * @param totalPage
	 *            total page
	 */
	public void setTotalPage( long totalPage )
	{
		if ( totalPage > pageNumber )
		{
			totalPage = pageNumber;
			scriptContext.registerBean( "totalPage", new Long( totalPage ) );
		}
	}
	/**
	 * get the current page number
	 *