2

I want to know how ( or where if logged somewhere) to find errors when running truffle exec . And this because i ran truffle command and a dependency was missing (i forget a require) and i didn't see any errors.

2

I find useful to insert a try catch and then console.log the error in order to see what was happening:

HelloWorld=artifacts.require("HelloWorld");

module.exports = async (callback) => {

    try {
               //code here 

    } catch(e){
        console.log(e)
    }

}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.