Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when compilation fails #2

Open
jrainville opened this issue May 23, 2019 · 0 comments
Open

Error when compilation fails #2

jrainville opened this issue May 23, 2019 · 0 comments

Comments

@jrainville
Copy link

If compilation fails because of a TypeError, for example, the plugin will throw an error because it tries to process the data even though there is no data.

embark-solc: C:/dev/status-teller-network/.embark/contracts/teller-network/Arbitration.sol:57:56: TypeError: Data location must be "memory" for parameter in function, but none was given.
    function openCase(uint _escrowId, address _openBy, string motive) public {
                                                       ^-----------^

Error Compiling/Building contracts: Error while compiling
Error while compiling
(node:21424) UnhandledPromiseRejectionWarning: TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at buildContractInfo (C:\dev\status-teller-network\node_modules\@trailofbits\embark-contract-info\index.js:17:36)
    at run (C:\dev\status-teller-network\node_modules\@trailofbits\embark-contract-info\index.js:33:26)
    at EventEmitter.emit (events.js:187:15)
    at EventEmitter.emit (domain.js:442:20)
    at compileSolcContract (C:\dev\status-teller-network\node_modules\embark-solc\lib\Compiler.js:136:23)
    at shelljs.ShellString.exec (C:\dev\status-teller-network\node_modules\embark-solc\lib\Compiler.js:22:5)
    at C:\dev\status-teller-network\node_modules\embark-solc\node_modules\shelljs\src\exec.js:121:9
    at ChildProcess.exithandler (child_process.js:280:7)
    at ChildProcess.emit (events.js:182:13)
    at ChildProcess.EventEmitter.emit (domain.js:442:20)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
(node:21424) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)

Note: Error experienced with embark-solc, but it will probably happen with Embark itself and it is better to make sure the data is complete before trying to process it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant