From ba6eb31c6baa43a9f7178684677feefec7ae463e Mon Sep 17 00:00:00 2001 From: Ilan Volow Date: Sun, 4 Dec 2016 19:32:15 -0500 Subject: [PATCH] Switching to setupTable() to provide a better demonstration for newbies. --- Sources/main.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Sources/main.swift b/Sources/main.swift index 0213b7a..1f0f013 100755 --- a/Sources/main.swift +++ b/Sources/main.swift @@ -39,7 +39,13 @@ RequestLogFile.location = "./http_log.txt" // Set up the Authentication table let auth = AuthAccount() -auth.setup() + +do { + try auth.setupTable() +} catch { + fatalError("Could not set AuthAccount's SQLite DB table. exiting") +} + // Connect the AccessTokenStore tokenStore = AccessTokenStore()