| Index: Source/devtools/front_end/bindings/CompilerScriptMapping.js
|
| diff --git a/Source/devtools/front_end/bindings/CompilerScriptMapping.js b/Source/devtools/front_end/bindings/CompilerScriptMapping.js
|
| index 5eec05f1c3d5debc6f5f7ff5d5fc92304b8965fa..a88d1e8f1be6ba9e1c618ac96a545f311bc32575 100644
|
| --- a/Source/devtools/front_end/bindings/CompilerScriptMapping.js
|
| +++ b/Source/devtools/front_end/bindings/CompilerScriptMapping.js
|
| @@ -149,6 +149,7 @@ WebInspector.CompilerScriptMapping.prototype = {
|
| this._scriptForSourceMap.set(sourceMap, script);
|
|
|
| var sourceURLs = sourceMap.sources();
|
| + var missingSources = [];
|
| for (var i = 0; i < sourceURLs.length; ++i) {
|
| var sourceURL = sourceURLs[i];
|
| if (this._sourceMapForURL.get(sourceURL))
|
| @@ -159,11 +160,21 @@ WebInspector.CompilerScriptMapping.prototype = {
|
| this._networkWorkspaceBinding.addFileForURL(sourceURL, contentProvider, script.isContentScript());
|
| }
|
| var uiSourceCode = this._workspace.uiSourceCodeForURL(sourceURL);
|
| - if (uiSourceCode)
|
| + if (uiSourceCode) {
|
| this._bindUISourceCode(uiSourceCode);
|
| - else
|
| - WebInspector.console.error(WebInspector.UIString("Failed to locate workspace file mapped to URL %s from source map %s", sourceURL, sourceMap.url()));
|
| + } else {
|
| + if (missingSources.length < 3)
|
| + missingSources.push(sourceURL);
|
| + else if (missingSources.peekLast() !== "\u2026")
|
| + missingSources.push("\u2026");
|
| + }
|
| + }
|
| + if (missingSources.length) {
|
| + WebInspector.console.warn(
|
| + WebInspector.UIString("Source map %s points to the files missing from the workspace: [%s]",
|
| + sourceMap.url(), missingSources.join(", ")));
|
| }
|
| +
|
| this._debuggerWorkspaceBinding.updateLocations(script);
|
| }
|
| },
|
|
|