Skip to content

Commit

Permalink
Merge pull request #139 from SuperblocksHQ/warning-color
Browse files Browse the repository at this point in the history
Change the compiler's error strings from orange to red
  • Loading branch information
javier-tarazaga authored Sep 17, 2018
2 parents 2a75f1f + 3dfcac5 commit 6050ee6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/projecteditor/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,11 @@ export default class Compiler extends Component {
}
else {
(data.errors || []).map((row)=>{
this.consoleRows.push({channel:3,msg:row.formattedMessage});
if (row.severity === "warning") {
this.consoleRows.push({ channel: 3, msg: row.formattedMessage });
} else {
this.consoleRows.push({ channel: 2, msg: row.formattedMessage });
}
});
if(!data.contracts || Object.keys(data.contracts).length==0) {
this.setState({status:"Ate bad code and died, compilation aborted."});
Expand Down

0 comments on commit 6050ee6

Please sign in to comment.