diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js
index ef83cf1f27..397ad6b46d 100644
--- a/src/app/tabs/compile-tab.js
+++ b/src/app/tabs/compile-tab.js
@@ -138,6 +138,13 @@ module.exports = class CompileTab {
if (data['error']) {
error = true
self._deps.renderer.error(data['error'].formattedMessage, self._view.errorContainer, {type: data['error'].severity || 'error'})
+ if (data['error'].mode === 'panic') {
+ return modalDialogCustom.alert(yo`
+ The compiler returned with the following internal error:
${data['error'].formattedMessage}.
+ The compiler might be in a non-sane state, please be careful and do not use further compilation data to deploy to mainnet.
+ It is heavily recommended to use another browser (not affected by this issue) until the issue is finally fixed.
+ Please join
remix gitter channel for more information.
`)
+ }
}
if (data.errors && data.errors.length) {
error = true
@@ -447,6 +454,10 @@ module.exports = class CompileTab {
}
const css = csjs`
+ .panicError {
+ color: red;
+ font-size: 20px;
+ }
.crow {
display: flex;
overflow: auto;