mirror of
https://github.com/Jguer/yay
synced 2024-09-14 13:51:12 +00:00
Show alpm warnings
This commit is contained in:
parent
f4aa7f7933
commit
42a74c41c5
|
@ -85,3 +85,12 @@ func questionCallback(question alpm.QuestionAny) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func logCallback(level alpm.LogLevel, str string) {
|
||||||
|
switch level {
|
||||||
|
case alpm.LogWarning:
|
||||||
|
fmt.Print(bold(yellow(smallArrow)), " ", str)
|
||||||
|
case alpm.LogError:
|
||||||
|
fmt.Print(bold(red(smallArrow)), " ", str)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue