MCPcopy
hub / github.com/gopherdata/gophernotes / makeDataErr

Function makeDataErr

display.go:346–355  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

344}
345
346func makeDataErr(err error) Data {
347 return Data{
348 Data: MIMEMap{
349 "ename": "ERROR",
350 "evalue": err.Error(),
351 "traceback": nil,
352 "status": "error",
353 },
354 }
355}
356
357func Any(mimeType string, data interface{}) Data {
358 return render(mimeType, data)

Callers 3

display.goFile · 0.85
fillDefaultsFunction · 0.85
ImageFunction · 0.85

Calls 1

ErrorMethod · 0.80

Tested by

no test coverage detected