compiler: make goroutine lowering panic message more helpful
This is a workaround for an existing issue, to see which function is to blame.
Этот коммит содержится в:
родитель
0b7047cc0e
коммит
79b470acee
1 изменённых файлов: 1 добавлений и 1 удалений
|
@ -403,7 +403,7 @@ func (c *Compiler) markAsyncFunctions() (needsScheduler bool, err error) {
|
|||
parentHandle = f.LastParam()
|
||||
if parentHandle.IsNil() || parentHandle.Name() != "parentHandle" {
|
||||
// sanity check
|
||||
panic("trying to make exported function async")
|
||||
panic("trying to make exported function async: " + f.Name())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче