fix missing var in error handling, fixes #12
Merge pull request #13 from atmos/fixup-missing-context-requirements

Fix missing var in error handling