added code for tidying up temps in error message
error printing v1 looking good