From 78a802359e67367289ba2f59759add7c623dc8ea Mon Sep 17 00:00:00 2001 From: Arthur Baars Date: Tue, 7 Mar 2023 13:38:48 +0100 Subject: [PATCH] Remove references to 'ruby' in generic extractor code --- ruby/extractor/src/extractor.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ruby/extractor/src/extractor.rs b/ruby/extractor/src/extractor.rs index fe1fc2e5ec1..09072bbf20f 100644 --- a/ruby/extractor/src/extractor.rs +++ b/ruby/extractor/src/extractor.rs @@ -306,8 +306,8 @@ impl<'a> Visitor<'a> { fn enter_node(&mut self, node: Node) -> bool { if node.is_missing() { self.record_parse_error_for_node( - "A parse error occurred (expected {} symbol). Check the syntax of the file using the {} command. If the file is invalid, correct the error or exclude the file from analysis.", - &[node.kind(), "ruby -c"], + "A parse error occurred (expected {} symbol). Check the syntax of the file. If the file is invalid, correct the error or exclude the file from analysis.", + &[node.kind()], node, true, ); @@ -315,8 +315,8 @@ impl<'a> Visitor<'a> { } if node.is_error() { self.record_parse_error_for_node( - "A parse error occurred. Check the syntax of the file using the {} command. If the file is invalid, correct the error or exclude the file from analysis.", - &["ruby -c"], + "A parse error occurred. Check the syntax of the file. If the file is invalid, correct the error or exclude the file from analysis.", + &[], node, true, );