[TASK] Assign version-related variable in error templates

Useful when displaying version-specific error information in custom error templates.
Merge pull request #154 from NamelessCoder/errorvariables

[TASK] Assign version-related variable in error templates