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

Function throwForVM

script/runtime.go:152–157  ·  view source on GitHub ↗
(vm *VM, e any)

Source from the content-addressed store, hash-verified

150}
151
152func throwForVM(vm *VM, e any) {
153 if vm == nil {
154 ThrowDetachedError(e)
155 }
156 vm.ThrowError(e)
157}
158
159func errorMessage(e any) string {
160 if re, ok := e.(err.Error); ok {

Callers 9

GetMethod · 0.85
SaveMethod · 0.85
MakeDirMethod · 0.85
CopyMethod · 0.85
MoveMethod · 0.85
ListMethod · 0.85
DeleteMethod · 0.85
GetURLMethod · 0.85
GetReaderMethod · 0.85

Calls 2

ThrowDetachedErrorFunction · 0.85
ThrowErrorMethod · 0.80

Tested by

no test coverage detected