[TASK] Assign version-related variable in error templates

Useful when displaying version-specific error information in custom error templates.