diff --git a/src/gmt_dcw.c b/src/gmt_dcw.c index a23b25bbac7..96d9b4e5b02 100644 --- a/src/gmt_dcw.c +++ b/src/gmt_dcw.c @@ -900,6 +900,9 @@ struct GMT_DATASET * gmt_DCW_operation (struct GMT_CTRL *GMT, struct GMT_DCW_SEL wesn[XLO] = 0.0; wesn[XHI] = 360.0; } + if (wesn[XHI] < wesn[XLO]) { /* Cannot tolerate that west larger than east */ + wesn[XLO] -= 360.0; + } GMT_Report (GMT->parent, GMT_MSG_INFORMATION, "Region implied by DCW polygons is %g/%g/%g/%g\n", wesn[XLO], wesn[XHI], wesn[YLO], wesn[YHI]); } gmt_M_free (GMT, order); diff --git a/src/gmt_remote.c b/src/gmt_remote.c index ee1f8bf17ff..e83d08b8449 100644 --- a/src/gmt_remote.c +++ b/src/gmt_remote.c @@ -1513,7 +1513,7 @@ int gmt_download_file (struct GMT_CTRL *GMT, const char *name, char *url, char * if (be_fussy || !(curl_err == CURLE_REMOTE_FILE_NOT_FOUND || curl_err == CURLE_HTTP_RETURNED_ERROR)) { /* Unexpected failure - want to bitch about it */ GMT_Report (API, GMT_MSG_ERROR, "Libcurl Error: %s\n", curl_easy_strerror (curl_err)); if (curl_err == CURLE_HTTP_RETURNED_ERROR) - GMT_Report (API, GMT_MSG_ERROR, "Probably means %s does not exist on the remote server\n", name); + GMT_Report (API, GMT_MSG_ERROR, "Probably means %s does not exist on the remote server [%s]\n", name, GMT->session.DATASERVER == NULL ? "not set" : GMT->session.DATASERVER); error = curl_err; if (urlfile.fp != NULL) { fclose (urlfile.fp);