mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 09:07:21 +01: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 New Issue
Block a user