cleanunicorn / mythos

CLI client for the MythX API
https://mythx.io/
20 stars 6 forks source link

TypeError: error.errors is not iterable #17

Closed muellerberndt closed 5 years ago

muellerberndt commented 5 years ago

Description

Mythos throws a TypeError exception when solc compilation fails. For example:

pragma solidity ^0.5.0;

contract Lol {

  syntaxerror
}
$ mythos analyze lol.sol Lol
Reading contract lol.sol... done
Compiling contract lol.sol... !
TypeError: error.errors is not iterable
    at Analyze.run (/usr/local/lib/node_modules/@cleanunicorn/mythos/lib/commands/analyze.js:31:35)

Expected behavior

The error(s) returned by solc should be displayed.

gitcoinbot commented 5 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 0.15 ETH (20.8 USD @ $138.69/ETH) attached to it as part of the MythX fund.

gitcoinbot commented 5 years ago

Issue Status: 1. Open 2. Cancelled


The funding of 0.15 ETH (21.24 USD @ $141.6/ETH) attached to this issue has been cancelled by the bounty submitter