From d8d38103b4654bcfe57205f3bb956660f1ececf4 Mon Sep 17 00:00:00 2001 From: ryanmurakami Date: Tue, 24 Nov 2020 12:28:24 -0700 Subject: [PATCH] error handling --- data/pizzaStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/pizzaStore.js b/data/pizzaStore.js index 8f79625..0a4f439 100644 --- a/data/pizzaStore.js +++ b/data/pizzaStore.js @@ -40,7 +40,7 @@ const Pizza = pgClient.define('pizza', { Pizza.initialize = async () => { return Pizza.sync({ force: true }).then(() => { console.log('postgres connection ready') - }) + }).catch(err => console.error(err)) } module.exports = Pizza