MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / serializeSourceDisabledError

Function serializeSourceDisabledError

server/sources/sourceAvailability.js:67–75  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

65}
66
67function serializeSourceDisabledError(error) {
68 if (!isSourceDisabledError(error)) return null;
69
70 return {
71 code: error.code,
72 sourceId: error.sourceId,
73 message: error.message,
74 };
75}
76
77module.exports = {
78 SourceDisabledError,

Callers 1

sendSourceDisabledErrorFunction · 0.85

Calls 1

isSourceDisabledErrorFunction · 0.85

Tested by

no test coverage detected