added categorie to watning message

pull/3/head
LianaHus 5 years ago committed by Liana Husikyan
parent 4801433500
commit 3a52847c4e
  1. 2
      src/app/tabs/staticanalysis/staticAnalysisView.js

@ -131,7 +131,7 @@ staticAnalysisView.prototype.run = function () {
location = Object.keys(self.lastCompilationResult.contracts)[file] + ':' + (location.start.line + 1) + ':' + (location.start.column + 1) + ':'
}
warningCount++
const msg = yo`<span>${location} ${item.warning} ${item.more ? yo`<span><br><a href="${item.more}" target="blank">more</a></span>` : yo`<span></span>`}</span>`
const msg = yo`<span>${result.name} ${location} ${item.warning} ${item.more ? yo`<span><br><a href="${item.more}" target="blank">more</a></span>` : yo`<span></span>`}</span>`
self._components.renderer.error(msg, warningContainer, {type: 'staticAnalysisWarning alert alert-warning', useSpan: true})
})
})

Loading…
Cancel
Save