{"record":{"id":"ab25aa11862f33e0","repo":"OrchardCMS/OrchardCore","slug":"msg-ab25aa","errorCode":null,"errorMessage":"msg","messagePattern":"msg","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/OrchardCore.Modules/OrchardCore.Resources/wwwroot/Vendor/jquery-3.6.0/jquery.slim.js","lineNumber":338,"sourceCode":"\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\njQuery.extend( {\n\n\t// Unique for each copy of jQuery on the page\n\texpando: \"jQuery\" + ( version + Math.random() ).replace( /\\D/g, \"\" ),\n\n\t// Assume jQuery is ready without the ready module\n\tisReady: true,\n\n\terror: function( msg ) {\n\t\tthrow new Error( msg );\n\t},\n\n\tnoop: function() {},\n\n\tisPlainObject: function( obj ) {\n\t\tvar proto, Ctor;\n\n\t\t// Detect obvious negatives\n\t\t// Use toString instead of jQuery.type to catch host objects\n\t\tif ( !obj || toString.call( obj ) !== \"[object Object]\" ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tproto = getProto( obj );\n\n\t\t// Objects with no prototype (e.g., `Object.create( null )`) are plain\n\t\tif ( !proto ) {\n\t\t\treturn true;","sourceCodeStart":320,"sourceCodeEnd":356,"githubUrl":"https://github.com/OrchardCMS/OrchardCore/blob/4306c0717fe573f6fca1b4955909ddab6a192807/src/OrchardCore.Modules/OrchardCore.Resources/wwwroot/Vendor/jquery-3.6.0/jquery.slim.js#L320-L356","documentation":"jQuery.error is jQuery's generic error-raising helper: it simply throws new Error(msg). The message \"msg\" indicates an error was thrown through $.error with the literal/placeholder string 'msg', meaning calling code (often a plugin or jQuery internals like data/animation/attribute code) invoked $.error('msg') with an unhelpful or templated message. Any jQuery/plugin code path that detects an invalid state funnels through this throw.","triggerScenarios":"Calling $.error('msg') directly in your code; plugin or jQuery internal code hitting an invalid condition and calling jQuery.error with a hard-coded or unformatted message (e.g. data storage on unsupported objects, invalid arguments to animation or cssHooks).","commonSituations":"Copy-pasted sample code where the placeholder string was never replaced; a plugin passing its message template unformatted; debugging session where the real call site is above this line in the stack trace.","solutions":["Read the full stack trace to find the caller of $.error — that caller defines the real problem, not this throw site.","Replace or fix the calling code that passes the literal 'msg'; supply a descriptive message or fix the invalid state it detected.","Remove/fix the direct $.error('msg') call if it is placeholder code in your own source.","Wrap the offending plugin call in try/catch if the failure is expected and can be handled gracefully."],"exampleFix":"// before\n$.error('msg'); // placeholder\n\n// after\nthrow new Error('Expected a DOM element, got: ' + typeof el);","handlingStrategy":"try-catch","validationCode":"null","typeGuard":"null","tryCatchPattern":"try {\n  riskyPluginCall(el);\n} catch (e) {\n  // jQuery.error throws plain Error; inspect the stack for the real $.error() caller\n  console.error('jQuery-level failure:', e.message, e.stack);\n}","preventionTips":["Treat jQuery.error throws as signals from calling code — always read the stack trace above this frame.","Replace placeholder $.error('msg') calls with descriptive messages or proper handling.","Validate arguments passed to plugins (expected element types/options) before invoking them.","Search your bundle for '$.error(' to find all throw sites when debugging."],"tags":["jquery","error-helper","plugins"],"backgroundTag":"internal-invariant-violation","analyzedSha":"4306c0717fe573f6fca1b4955909ddab6a192807","analyzedAt":"2026-09-13T17:41:05.024Z","contentChangedAt":"2026-09-13T17:41:05.024Z","schemaVersion":2},"datasetVersion":"2026-09-15T23:17:13.987Z"}