summaryrefslogtreecommitdiffstats
path: root/playbooks/adhoc/upgrades/files
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/adhoc/upgrades/files')
-rw-r--r--playbooks/adhoc/upgrades/files/pre-upgrade-check7
1 files changed, 5 insertions, 2 deletions
diff --git a/playbooks/adhoc/upgrades/files/pre-upgrade-check b/playbooks/adhoc/upgrades/files/pre-upgrade-check
index c8ecae399..ed4ab6d1b 100644
--- a/playbooks/adhoc/upgrades/files/pre-upgrade-check
+++ b/playbooks/adhoc/upgrades/files/pre-upgrade-check
@@ -131,8 +131,11 @@ def main():
print "found"
except:
print(
- 'Can not find oc (%s). Override the path with the '
- 'OC_PATH environment variable. Exiting...' % OC_PATH)
+ 'Unable to run "%s whoami"\n'
+ 'Please ensure OpenShift is running, and "oc" is on your system '
+ 'path.\n'
+ 'You can override the path with the OC_PATH environment variable.'
+ % OC_PATH)
raise SystemExit(1)
# Where the magic happens