Added Error/Warning to gen.sh