Browse Source

Better error message for parsing a bogus time string

Carsten Dominik 15 years ago
parent
commit
210251347c
2 changed files with 3 additions and 1 deletions
  1. 2 0
      lisp/ChangeLog
  2. 1 1
      lisp/org.el

+ 2 - 0
lisp/ChangeLog

@@ -1,5 +1,7 @@
 2009-08-27  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org.el (org-parse-time-string): Better error message.
+
 	* org-macs.el (org-goto-line): New defsubst.
 
 	* org.el (org-open-file, org-change-tag-in-region)

+ 1 - 1
lisp/org.el

@@ -13156,7 +13156,7 @@ hour and minute fields will be nil if not given."
 	    (string-to-number (match-string 3 s))
 	    (string-to-number (match-string 2 s))
 	    nil nil nil)
-    (make-list 9 0)))
+    (error "Not a standard Org-mode time string: %s" s)))
 
 (defun org-timestamp-up (&optional arg)
   "Increase the date item at the cursor by one.