Adds generic printError function in place of reuse of if statements
Adds generic printError function in place of reuse of if statements

intfrr/blacksheepwall,intfrr/blacksheepwall,tomsteele/blacksheepwall