[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dape 8995c9f975 5/6: Improve error checking in dape-mem
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dape 8995c9f975 5/6: Improve error checking in dape-memory-mode |
Date: |
Thu, 29 Feb 2024 12:57:46 -0500 (EST) |
branch: externals/dape
commit 8995c9f975e6ccc86c67309a11f970651454db68
Author: Daniel Pettersson <daniel@dpettersson.net>
Commit: Daniel Pettersson <daniel@dpettersson.net>
Improve error checking in dape-memory-mode
---
dape.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/dape.el b/dape.el
index 095fb66284..af5d971dd9 100644
--- a/dape.el
+++ b/dape.el
@@ -2349,8 +2349,10 @@ Using BUFFER and STR."
(dape-request conn "readMemory"
(list :memoryReference dape--memory-offset
:count dape-read-memory-bytes))
- (if error
- (message "Failed to read memory %s" error)
+ (cond
+ (error (message "Failed to read memory: %s" error))
+ ((not data) (message "No bytes returned from adapter"))
+ (t
(let ((inhibit-read-only t))
(setq dape--memory-offset address
buffer-undo-list nil)
@@ -2391,7 +2393,7 @@ Using BUFFER and STR."
(list :memoryReference offset
:data (base64-encode-string (buffer-string) t)))
(if error
- (message "Failed to write memory %s" error)
+ (message "Failed to write memory: %s" error)
(with-current-buffer buffer
(set-buffer-modified-p nil))
(message "Memory written successfully at %s" offset)
- [elpa] externals/dape updated (c740bfb671 -> cb5e7765a9), ELPA Syncer, 2024/02/29
- [elpa] externals/dape eec5f0d18c 1/6: Add new mode for memory view dape-memory-mode, ELPA Syncer, 2024/02/29
- [elpa] externals/dape 8995c9f975 5/6: Improve error checking in dape-memory-mode,
ELPA Syncer <=
- [elpa] externals/dape 5e5db543a8 3/6: Add fixme comment for incorrect `revert-buffer-in-progress-p' use, ELPA Syncer, 2024/02/29
- [elpa] externals/dape 0893709d2f 2/6: Fix small formatting issue, ELPA Syncer, 2024/02/29
- [elpa] externals/dape 20e666af5c 4/6: Fix error message in memory read, ELPA Syncer, 2024/02/29
- [elpa] externals/dape cb5e7765a9 6/6: Fix missing parenthesise, ELPA Syncer, 2024/02/29