-
-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #545 from chipx86/inline-compile-errors
Add error output for compiler errors within the browser.
- Loading branch information
Showing
8 changed files
with
108 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<div id="django-pipeline-error-{{package_name}}" class="django-pipeline-error" | ||
style="display: none; border: 2px #DD0000 solid; margin: 1em; padding: 1em; background: white;"> | ||
<h1>Error compiling {{package_type}} package "{{package_name}}"</h1> | ||
<p><strong>Command:</strong></p> | ||
<pre style="white-space: pre-wrap;">{{command}}</pre> | ||
<p><strong>Errors:</strong></p> | ||
<pre style="white-space: pre-wrap;">{{errors}}</pre> | ||
</div> | ||
|
||
<script> | ||
document.addEventListener('readystatechange', function() { | ||
var el, | ||
container; | ||
|
||
if (document.readyState !== 'interactive') { | ||
return; | ||
} | ||
|
||
el = document.getElementById('django-pipeline-error-{{package_name}}'); | ||
container = document.getElementById('django-pipeline-errors'); | ||
|
||
if (!container) { | ||
container = document.createElement('div'); | ||
container.id = 'django-pipeline-errors'; | ||
document.body.insertBefore(container, document.body.firstChild); | ||
} | ||
|
||
container.appendChild(el); | ||
el.style.display = 'block'; | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters