rewrite error dictionary initialization