[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb cbb4cc1 20/21: More complete error handling for fi
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb cbb4cc1 20/21: More complete error handling for field insertion |
Date: |
Sun, 17 Sep 2017 15:32:49 -0400 (EDT) |
branch: externals/ebdb
commit cbb4cc13902fd1c6bceb070e1dfd6a7aeba39b42
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
More complete error handling for field insertion
* ebdb-com.el (ebdb-insert-field): We were only catching the
'ebdb-unacceptable-field error; other errors were being silently
swallowed.
---
ebdb-com.el | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/ebdb-com.el b/ebdb-com.el
index 002d3ea..c33de0e 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -1549,10 +1549,13 @@ in `ebdb-db-list', using its default record class. Use
clone)
(ebdb-with-record-edits (r records)
(setq clone (clone field))
- (condition-case nil
- (ebdb-record-insert-field r clone)
+ (condition-case err
+ (ebdb-record-insert-field r clone)
(ebdb-unacceptable-field
- (message "Record %s cannot accept field %s" (ebdb-string r) field)
+ (message "Record %s cannot accept field %s" (ebdb-string r)
(ebdb-string field))
+ (sit-for 2))
+ (error
+ (message "Error inserting field: %s, %s" (car err) (cdr err))
(sit-for 2)))))))
;; TODO: Allow editing of multiple record fields simultaneously.
- [elpa] externals/ebdb updated (cec392d -> c298037), Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 6b605a9 06/21: Hash records against their tag field tags, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 4206ccd 02/21: Don't unilaterally add to kill-emacs-hook, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 3311fc7 10/21: Add a dir file for the Info manual, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 62fcfcf 15/21: Add ebdb-save to write-contents-functions in EBDB buffers, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb a22c983 16/21: Try different faces in EBDB buffers, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 13f680a 13/21: Part two of threaded version of ebdb-initialize, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 3a918eb 09/21: Provide better instructions for BBDB migration, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb cbb4cc1 20/21: More complete error handling for field insertion,
Eric Abrahamsen <=
- [elpa] externals/ebdb c298037 21/21: Bump version for 0.3.2, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 18be9ad 04/21: Add ebdb-field-bank-account class, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb dc5d03e 01/21: Change behavior of ebdb-fmt-compose-field, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 9c0947c 05/21: Comment out some custom definitions for address field, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 4a332dc 03/21: Add defgeneric for ebdb-read, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 767a9fa 07/21: Allow two kinds of searches on tags, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 8fc7b6d 08/21: Allow "fast lookups", Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb e3229ad 11/21: Give some indication that the migration process is ongoing, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb efd9e15 12/21: Provide an alternate threaded version of ebdb-initialize, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 2fa4379 14/21: New option ebdb-try-speedups, Eric Abrahamsen, 2017/09/17