Skip to content

Commit 6ddfa80

Browse files
committed
Enhance output
1 parent a05054e commit 6ddfa80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

enum4linux-ng.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ def _validate(self):
873873
if not os.access(directory, os.W_OK):
874874
raise ValueError( f'The given output directory {directory} is not writable')
875875
if not basename:
876-
raise ValueError(f'Please add an output file name, only an output directory {directory} was specified')
876+
raise ValueError(f'Please add an output file name, only an output directory {self.out_file} was specified')
877877
if 'json' in self.out_file_type and os.path.exists(f'{self.out_file}.json') and not os.access(f'{self.out_file}.json', os.W_OK):
878878
raise ValueError(f'The given output file {self.out_file}.json exists, but is not writable')
879879
if 'yaml' in self.out_file_type and os.path.exists(f'{self.out_file}.yaml') and not os.access(f'{self.out_file}.yaml', os.W_OK):

0 commit comments

Comments
 (0)