emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/osm 25621bb80e 41/77: curl add --fail argument


From: ELPA Syncer
Subject: [elpa] externals/osm 25621bb80e 41/77: curl add --fail argument
Date: Mon, 7 Mar 2022 08:58:06 -0500 (EST)

branch: externals/osm
commit 25621bb80e1cccf68efea69ddf95aba9f5a1edcd
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    curl add --fail argument
---
 osm.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/osm.el b/osm.el
index 413b080246..e864e0e469 100644
--- a/osm.el
+++ b/osm.el
@@ -311,7 +311,7 @@ We need two distinct images which are not `eq' for the 
display properties.")
        :connection-type 'pipe
        :noquery t
        :command
-       (list "curl" "-s" "-o" tmp (osm--tile-url x y zoom))
+       (list "curl" "-f" "-s" "-o" tmp (osm--tile-url x y zoom))
        :filter #'ignore
        :sentinel
        (lambda (_proc status)
@@ -675,7 +675,7 @@ We need two distinct images which are not `eq' for the 
display properties.")
           (json-parse-string
            (shell-command-to-string
             (concat
-             "curl -s "
+             "curl -f -s "
              (shell-quote-argument
               (format 
"https://nominatim.openstreetmap.org/reverse?format=json&zoom=%s&lon=%s&lat=%s";
                       (min 18 (max 3 osm--zoom)) (osm--lon) (osm--lat)))))
@@ -705,7 +705,7 @@ We need two distinct images which are not `eq' for the 
display properties.")
                   nil nil nil 'osm--search-history))
          (json (json-parse-string
                 (shell-command-to-string
-                 (concat "curl -s "
+                 (concat "curl -f -s "
                          (shell-quote-argument
                           (concat 
"https://nominatim.openstreetmap.org/search?format=json&q=";
                                   (url-encode-url search)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]