changed printError to native error function