Make printerror work as documented
Fixes issue #24 if I understand this correctly