log improved to handle Slither

pull/1398/head
Aniket-Engg 3 years ago committed by Aniket
parent 3128594684
commit 03a477f188
  1. 5
      libs/remixd/src/services/slitherClient.ts

@ -110,11 +110,10 @@ export class SlitherClient extends PluginClient {
console.log('\x1b[32m%s\x1b[0m', `[Slither Analysis]: Analysis Completed!! ${response['count']} warnings found.`)
resolve(response)
} else {
console.log('\x1b[31m%s\x1b[0m', '[Slither Analysis]: Error in running Slither Analysis')
console.log(report['error'])
reject(new Error('Error in running Slither Analysis. See remixd console for details.'))
reject(new Error('Error in running Slither Analysis.'))
}
} else reject(new Error('Error in generating Slither Analysis Report. See remixd console for details.'))
} else reject(new Error('Error in generating Slither Analysis Report. Make sure Slither is properly installed.'))
})
})
}

Loading…
Cancel
Save