internal/ui: fix wrong panic messages

This commit is contained in:
Hajime Hoshi 2023-09-29 15:36:12 +09:00
parent 8ab6b74c93
commit 14a2c703df

View File

@ -81,7 +81,7 @@ func (m *monitors) append(ms []*Monitor) []*Monitor {
func (m *monitors) primaryMonitor() *Monitor { func (m *monitors) primaryMonitor() *Monitor {
if atomic.LoadInt32(&m.updateCalled) == 0 { 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() m.m.Lock()