fix: nil pointer dereference error when in debug mode
This commit is contained in:
parent
e32fb792f6
commit
fee0eaaed7
6 changed files with 86 additions and 42 deletions
|
|
@ -32,7 +32,7 @@ func progressBar() {
|
|||
)
|
||||
|
||||
// initialize progressbar
|
||||
logging.Print(debug, "Initialize progressbar", nil)
|
||||
logging.Print("Initialize progressbar", nil)
|
||||
err := bar.RenderBlank()
|
||||
progressBarAdd(1)
|
||||
if err != nil {
|
||||
|
|
@ -42,7 +42,7 @@ func progressBar() {
|
|||
|
||||
func progressBarAdd(amount int) {
|
||||
if err := bar.Add(amount); err != nil {
|
||||
logging.Print(debug, "ERROR: Progress bar update error: %v\n", err)
|
||||
logging.Print("ERROR: Progress bar update error: %v\n", err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue