MCPcopy Index your code
hub / github.com/darkreader/darkreader / throwError

Function throwError

src/utils/colorscheme-parser.ts:80–85  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

78 let error: string | null = null;
79
80 const throwError = (message: string) => {
81 if (!interrupt) {
82 interrupt = true;
83 error = message;
84 }
85 };
86
87 // Now we will iterate troughout each section.
88 // We will always assume bad-faith and make sure to have

Callers 2

parseColorSchemeConfigFunction · 0.85
checkVariantFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected