We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fda224b commit ffec193Copy full SHA for ffec193
gitless/cli/helpers.py
@@ -88,7 +88,13 @@ def page(fp, repo):
88
cmd.extend(['-r', '-f']) # append arguments
89
90
cmd.append(fp) # add file name to page command
91
- subprocess.call(cmd, stdin=sys.stdin, stdout=sys.stdout)
+ try:
92
+ ret = subprocess.call(cmd, stdin=sys.stdin, stdout=sys.stdout)
93
+ if ret != 0:
94
+ pprint.err('Call to pager {0} failed'.format(pager))
95
+ except OSError:
96
+ pprint.err('Couldn\'t launch pager {0}'.format(pager))
97
+ pprint.err_exp('change the value of git\'s core.pager setting')
98
99
100
class PathProcessor(argparse.Action):
0 commit comments