Commit 9331696eb2a6d1b8119e51774ad87511ee29b49d

Authored by decalage2
1 parent 15aad960

olevba: improved error message when attempting to analyse an RTF file.

Showing 1 changed file with 1 additions and 1 deletions
oletools/olevba.py
... ... @@ -2717,7 +2717,7 @@ class VBA_Parser(object):
2717 2717 if rtfobj.is_rtf(data, treat_str_as_data=True):
2718 2718 # Ignore RTF since it contains no macros and methods in here will not find macros
2719 2719 # in embedded objects. run rtfobj and repeat on its output.
2720   - msg = '%s is RTF, need to run rtfobj.py and find VBA Macros in its output.' % self.filename
  2720 + msg = '%s is RTF, which cannot contain VBA Macros. Please use rtfobj to analyse it.' % self.filename
2721 2721 log.info(msg)
2722 2722 raise FileOpenError(msg)
2723 2723 # Check if this is a plain text VBA or VBScript file:
... ...