goji icon indicating copy to clipboard operation
goji copied to clipboard

Fix stack overflow on display error

Open Aceeri opened this issue 7 years ago • 1 comments

If you did println!("{}", err); it would stack overflow because the Display impl recursively called Display::fmt on itself here

Aceeri avatar Oct 22 '18 23:10 Aceeri

This issue is still present in the master branch and it causes a stack overflow if the credentials to connect to Jira are not valid.

Here a simple way to fix it:

change from:

writeln!(f, "Could not connect to Jira: {}!", self),

to:

writeln!(f, "Could not connect to Jira: {:?}!", self),

ufoscout avatar Dec 22 '20 09:12 ufoscout