From c294ede7f93598c6a03098b28ba089363796685d Mon Sep 17 00:00:00 2001 From: Disconnect3d Date: Tue, 14 Sep 2021 00:45:18 +0200 Subject: [PATCH] pwndbg.file.get_file: better warning message --- pwndbg/file.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pwndbg/file.py b/pwndbg/file.py index 37313c3f6..9bd2350ef 100755 --- a/pwndbg/file.py +++ b/pwndbg/file.py @@ -12,6 +12,7 @@ import tempfile import gdb +import pwndbg.color.message as message import pwndbg.qemu import pwndbg.remote import pwndbg.symbol @@ -53,7 +54,7 @@ def get_file(path): raise OSError("Could not download remote file %r:\n" \ "Error: %s" % (path, error)) else: - print("[pwndbg warning]: pwndbg.file.get(%s) returns local path" % path) + print(message.warn("pwndbg.file.get(%s) returns local path as we can't download file from QEMU" % path)) return local_path