gen-wholesale-order.sh: emit error and pause if file not created