Skip to content

Commit 5518388

Browse files
committed
Collect and report file open error message.
1 parent 8b9f91d commit 5518388

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/qfileaccessor.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77
class BINARYNINJAUIAPI QFileAccessor : public BinaryNinja::FileAccessor
88
{
99
QFile* m_file;
10+
QString m_error;
1011

1112
public:
1213
QFileAccessor(const QString& name, bool write = false);
1314
virtual ~QFileAccessor();
1415

1516
virtual bool IsValid() const;
17+
virtual QString GetError() const;
1618
virtual uint64_t GetLength() const;
1719

1820
virtual size_t Read(void* dest, uint64_t offset, size_t len);

0 commit comments

Comments
 (0)