added inputError macro
Merge pull request #154 from petrjirous/doc-2.2

added inputError macro