- make lines in statusfile which gave an error on restore

This commit is contained in:
zolliker
2008-01-18 07:33:47 +00:00
parent bedc9026d1
commit 4fa214c4c8

View File

@ -436,13 +436,14 @@ static int SaveRestore(void *obj, char *name, FILE *fd){
if(self == NULL){
return 0;
}
fprintf(fd,"\n#--- BEGIN (commands producing errors on last restore)\n");
status = LLDnodePtr2First(self->errList);
while(status == 1){
LLDstringData(self->errList,buffer);
fprintf(fd,"%s\n", buffer);
fprintf(fd,"%s", buffer);
status = LLDnodePtr2Next(self->errList);
}
fprintf(fd,"#--- END (commands producing errors on last restore)\n\n");
return 1;
}
/*---------------------------------------------------------------------------*/