Parse error messages from Terra blockchain
npm i @terra-money/error-parser
import parse from "@terra-money/error-parser"
const errorMessage = "failed to execute message; message index: 0: Already claimed: execute wasm contract failed"
console.log(parse(errorMessage))
// Already claimed