diff --git a/apier/v1/core.go b/apier/v1/core.go index 259eb83bb..15bdc668d 100644 --- a/apier/v1/core.go +++ b/apier/v1/core.go @@ -96,6 +96,12 @@ func (cS *CoreSv1) StopMemoryProfiling(_ *utils.TenantWithAPIOpts, reply *string return nil } -func (cS *CoreSv1) Panic(args *string, _ *string) error { - panic(*args) +type PanicMsgWithTenantAPIOpts struct { + Tenant string + APIOpts map[string]interface{} + Msg string +} + +func (cS *CoreSv1) Panic(args *PanicMsgWithTenantAPIOpts, _ *string) error { + panic(utils.ToJSON(args)) }