MCPcopy Create free account
hub / github.com/devld/go-drive / ThrowDetachedError

Function ThrowDetachedError

script/runtime.go:143–150  ·  view source on GitHub ↗
(e any)

Source from the content-addressed store, hash-verified

141}
142
143func ThrowDetachedError(e any) {
144 message := errorMessage(e)
145 value, conversionErr := otto.ToValue("Error: " + message)
146 if conversionErr != nil {
147 panic(conversionErr)
148 }
149 panic(value)
150}
151
152func throwForVM(vm *VM, e any) {
153 if vm == nil {

Callers 2

throwForVMFunction · 0.85

Calls 1

errorMessageFunction · 0.85

Tested by 1