log improved to handle Slither

pull/5370/head
Aniket-Engg 4 years ago committed by Aniket
parent 92ae5c49b3
commit 95b7f72565
  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.`) console.log('\x1b[32m%s\x1b[0m', `[Slither Analysis]: Analysis Completed!! ${response['count']} warnings found.`)
resolve(response) resolve(response)
} else { } else {
console.log('\x1b[31m%s\x1b[0m', '[Slither Analysis]: Error in running Slither Analysis')
console.log(report['error']) 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