Eliminate one debugging print and add another error one