Skip to content

Commit 200a42e

Browse files
committed
FIX: trying to get a console width under CI on Windows trows an error
1 parent 7699e3d commit 200a42e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mezz/mezz-debug.reb

+3-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ print-table: function [
164164
]
165165

166166
print-horizontal-line: does [
167-
loop -1 + any [query/mode system/ports/output 'window-cols 76][ prin #"-" ] prin lf
167+
;@@ quering window-cols width in CI under Windows now throws error: `Access error: protocol error: 6`
168+
;@@ it should return `none` like under Posix systems!
169+
loop -1 + any [attempt [query/mode system/ports/output 'window-cols] 76][ prin #"-" ] prin lf
168170
]
169171

170172
;@@ profile idea is based on code from https://gist.github.com/giesse/1232d7f71a15a3a8417ec6f091398811

0 commit comments

Comments
 (0)