From a89500c8553ff0922c070ab06161b9968b79834f Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Sat, 14 Jun 2014 10:54:14 +0800 Subject: [PATCH] Add no permission message when fail to create hstore extension --- main_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main_test.go b/main_test.go index 46d6e6e4..39aac884 100644 --- a/main_test.go +++ b/main_test.go @@ -2049,6 +2049,7 @@ func TestHstore(t *testing.T) { } if err := db.Exec("CREATE EXTENSION IF NOT EXISTS hstore").Error; err != nil { + fmt.Println("\033[31mHINT: Must be superuser to create hstore extension (ALTER USER gorm WITH SUPERUSER;)\033[0m") panic(fmt.Sprintf("No error should happen when create hstore extension, but got %+v", err)) }