Merging branch 'log-more-helpfully' from mjip/PR #22 Log terminal size determination error instead of nil Log a more descriptive message than nil in the case of an error with terminal size determination
1 files changed, 1 insertions(+), 1 deletions(-) M convert/resize.go
M convert/resize.go => convert/resize.go +1 -1
@@ 126,7 126,7 @@ func (handler *ImageResizeHandler) resolveSize(sz image.Rectangle, options *Opti func (handler *ImageResizeHandler) CalcProportionalFittingScreenSize(sz image.Rectangle) (newWidth, newHeight int, err error) { screenWidth, screenHeight, err := handler.terminal.ScreenSize() if err != nil { log.Fatal(nil) log.Fatal(err) } newWidth, newHeight = handler.CalcFitSize( float64(screenWidth),