Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Unified Diff: experimental/webtry/webtry.go

Issue 669643004: webtry: Improve error handling/message when creating sqlite tables. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/webtry/webtry.go
diff --git a/experimental/webtry/webtry.go b/experimental/webtry/webtry.go
index 830859c08b9ba0b8727a5d55e65df46676080110..bfb97ba7aeb48f8282b4ab1bd9e591411a6a2b7e 100644
--- a/experimental/webtry/webtry.go
+++ b/experimental/webtry/webtry.go
@@ -235,7 +235,7 @@ func Init() {
)`
_, err = db.Exec(sql)
if err != nil {
- glog.Infof("status creating sqlite table for sources: %q\n", err)
+ glog.Errorf("Creating source_images table failed: %s", err)
}
sql = `CREATE TABLE IF NOT EXISTS webtry (
@@ -251,7 +251,7 @@ func Init() {
)`
_, err = db.Exec(sql)
if err != nil {
- glog.Infof("status creating sqlite table for webtry: %q\n", err)
+ glog.Errorf("Creating webtry table failed: %s", err)
}
sql = `CREATE TABLE IF NOT EXISTS workspace (
@@ -261,7 +261,7 @@ func Init() {
)`
_, err = db.Exec(sql)
if err != nil {
- glog.Infof("status creating sqlite table for workspace: %q\n", err)
+ glog.Errorf("Creating workspace table failed: %s", err)
}
sql = `CREATE TABLE IF NOT EXISTS workspacetry (
@@ -278,7 +278,7 @@ func Init() {
)`
_, err = db.Exec(sql)
if err != nil {
- glog.Infof("status creating sqlite table for workspace try: %q\n", err)
+ glog.Errorf("Creating workspacetry table failed: %s", err)
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698