internal/ui: fix wrong panic messages

This commit is contained in:
Hajime Hoshi 2023-09-29 15:36:12 +09:00
parent ee68b46a9a
commit ff64920b73

View File

@ -74,7 +74,7 @@ func (m *monitors) append(ms []*Monitor) []*Monitor {
func (m *monitors) primaryMonitor() *Monitor {
if atomic.LoadInt32(&m.updateCalled) == 0 {
panic("ui: (*monitors).primaryMonitor must be called before (*monitors).append is called")
panic("ui: (*monitors).update must be called before (*monitors).primaryMonitor is called")
}
m.m.Lock()