Store error history