Missing `new` operator when creating and throwing a new error
Merge pull request #1114 from FredKSchott/linting-fix-missing-new

linting fix: Added a `new` operator that was missing when creating and throwing a new error