Browse code

kamdbctl: more error help for missing .pgpass file

Daniel-Constantin Mierla authored on 13/06/2016 10:50:04
Showing 1 changed files
... ...
@@ -43,8 +43,10 @@ fi
43 43
 if [ -z "$DBROOTUSER" ]; then
44 44
 	DBROOTUSER="postgres"
45 45
 	if [ ! -r ~/.pgpass ]; then
46
-		merr "~/.pgpass does not exist, please create this file and support proper credentials for user postgres."
46
+		merr "~/.pgpass does not exist"
47
+		merr "create this file and add proper credentials for user postgres"
47 48
 		merr "Note: you need at least postgresql>= 7.3"
49
+		merr "Hint: .pgpass hostname must match DBHOST"
48 50
 		exit 1
49 51
 	fi
50 52
 fi