From 03a477f1886bf6073076cc055801c314ff677a34 Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Wed, 30 Jun 2021 18:42:30 +0530 Subject: [PATCH] log improved to handle Slither --- libs/remixd/src/services/slitherClient.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/remixd/src/services/slitherClient.ts b/libs/remixd/src/services/slitherClient.ts index 926305034d..b4f54254ce 100644 --- a/libs/remixd/src/services/slitherClient.ts +++ b/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.')) }) }) }