Added reporting of errors when uploading templates