pcxenc: Return more meaningful error codes