-2 => {
self.file_is_truncated = true;
},
- _ => { panic!("append failed with code {}", res); },
+ _ => {
+ SCLogDebug!("got error so truncing file");
+ self.file_is_truncated = true;
+ },
}
self.tracked += self.chunk_left as u64;
self.file_is_truncated = true;
},
_ => {
- panic!("append failed: files.file_append() returned {}", res);
+ SCLogDebug!("got error so truncing file");
+ self.file_is_truncated = true;
},
}
-2 => {
self.file_is_truncated = true;
},
- _ => { panic!("append failed with code {}", res); },
+ _ => {
+ SCLogDebug!("got error so truncing file");
+ self.file_is_truncated = true;
+ },
}
self.tracked += data.len() as u64;
} else {