added error handling when there is a jar template error