From 1ff60b49f9e8c78f48a6bca3af5a8216712de233 Mon Sep 17 00:00:00 2001 From: Josselin Date: Mon, 14 Jan 2019 14:14:22 +0100 Subject: [PATCH] Add warning if no contract was analyzed --- slither/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slither/__main__.py b/slither/__main__.py index 25b9d1aa0..60724008c 100644 --- a/slither/__main__.py +++ b/slither/__main__.py @@ -274,6 +274,8 @@ def main_impl(all_detector_classes, all_printer_classes): if args.json: output_json(results, args.json) # Dont print the number of result for printers + if number_contracts == 0: + logger.warn(red('No contract was analyzed')) if printer_classes: logger.info('%s analyzed (%d contracts)', filename, number_contracts) else: