Skip to content

Commit 8823b59

Browse files
committed
Showing failed to take screenshot message if gauge_screenshot fails
1 parent f319d04 commit 8823b59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

getgauge/registry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ def _take_screenshot():
139139
temp_file = os.path.join(tempfile.gettempdir(), 'screenshot.png')
140140
call(['gauge_screenshot', temp_file])
141141
if not os.path.exists(temp_file):
142+
print("Failed to take screenshot using gauge_screenshot.")
142143
return str.encode("")
143144
_file = open(temp_file, 'r+b')
144145
data = _file.read()

0 commit comments

Comments
 (0)