Changed printInfo to printError for errors