From 91a19e1697f1647d19660017ebf2be0ee458d4b3 Mon Sep 17 00:00:00 2001 From: Gil Moskowitz Date: Tue, 16 Sep 2014 12:15:49 -0400 Subject: [PATCH] eliminate a warning --- scripts/lib/build_database.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- 2.39.2