From: Gil Moskowitz Date: Tue, 16 Sep 2014 16:15:49 +0000 (-0400) Subject: eliminate a warning X-Git-Tag: v4.7.0-beta.2~13^2~8 X-Git-Url: http://git.roojs.org/?p=xtuple;a=commitdiff_plain;h=91a19e1697f1647d19660017ebf2be0ee458d4b3 eliminate a warning --- diff --git a/scripts/lib/build_database.js b/scripts/lib/build_database.js index 6f646955c..c0446c0fb 100644 --- a/scripts/lib/build_database.js +++ b/scripts/lib/build_database.js @@ -190,9 +190,8 @@ var async = require('async'), return memo + script; }, ""); - // Without this, when we delegate to exec psql the err var will not be set even - // on the case of error. - allSql = "\\set ON_ERROR_STOP TRUE;\n" + allSql; + // Without this, psql runs all input and returns success even if errors occurred + allSql = "\\set ON_ERROR_STOP TRUE\n" + allSql; winston.info("Applying build to database " + spec.database); credsClone.database = spec.database;