You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
panic(fmt.Sprintf("invalid background color for timeline type %q: %v", label, err))
128
+
}
129
+
iferr:=foregroundColor.Verify(); err!=nil {
130
+
panic(fmt.Sprintf("invalid foreground color for timeline type %q: %v", label, err))
131
+
}
97
132
mu.Lock()
98
133
defermu.Unlock()
99
134
135
+
iflocked {
136
+
panic(fmt.Sprintf("Failed to register timeline type style %q: style-related registrations must be done in task/inspection/**/contract packages during package initialization. Did you call it from outside of the contract or not at package initialization timing?", label))
panic(fmt.Sprintf("invalid background color for severity %q: %v", label, err))
158
+
}
159
+
iferr:=foregroundColor.Verify(); err!=nil {
160
+
panic(fmt.Sprintf("invalid foreground color for severity %q: %v", label, err))
161
+
}
117
162
mu.Lock()
118
163
defermu.Unlock()
119
164
165
+
iflocked {
166
+
panic(fmt.Sprintf("Failed to register severity style %q: style-related registrations must be done in task/inspection/**/contract packages during package initialization. Did you call it from outside of the contract or not at package initialization timing?", label))
panic(fmt.Sprintf("invalid background color for verb %q: %v", label, err))
187
+
}
188
+
iferr:=foregroundColor.Verify(); err!=nil {
189
+
panic(fmt.Sprintf("invalid foreground color for verb %q: %v", label, err))
190
+
}
136
191
mu.Lock()
137
192
defermu.Unlock()
138
193
194
+
iflocked {
195
+
panic(fmt.Sprintf("Failed to register verb style %q: style-related registrations must be done in task/inspection/**/contract packages during package initialization. Did you call it from outside of the contract or not at package initialization timing?", label))
panic(fmt.Sprintf("invalid background color for log type %q: %v", label, err))
215
+
}
216
+
iferr:=foregroundColor.Verify(); err!=nil {
217
+
panic(fmt.Sprintf("invalid foreground color for log type %q: %v", label, err))
218
+
}
154
219
mu.Lock()
155
220
defermu.Unlock()
156
221
222
+
iflocked {
223
+
panic(fmt.Sprintf("Failed to register log type style %q: style-related registrations must be done in task/inspection/**/contract packages during package initialization. Did you call it from outside of the contract or not at package initialization timing?", label))
panic(fmt.Sprintf("invalid background color for revision state %q: %v", label, err))
243
+
}
172
244
mu.Lock()
173
245
defermu.Unlock()
174
246
247
+
iflocked {
248
+
panic(fmt.Sprintf("Failed to register revision state style %q: style-related registrations must be done in task/inspection/**/contract packages during package initialization. Did you call it from outside of the contract or not at package initialization timing?", label))
0 commit comments