From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: Throwing error if process started with call-process returns error exit code Date: Thu, 19 Jul 2018 13:58:17 -0400 Message-ID: References: <838t672ka4.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1532023034 9230 195.159.176.226 (19 Jul 2018 17:57:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 19 Jul 2018 17:57:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 19 19:57:10 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgDAq-0002Eh-Fb for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jul 2018 19:57:08 +0200 Original-Received: from localhost ([::1]:44521 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgDCv-0005ZP-NV for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jul 2018 13:59:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgDCD-0005Vd-Ae for help-gnu-emacs@gnu.org; Thu, 19 Jul 2018 13:58:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgDCC-0003c1-3b for help-gnu-emacs@gnu.org; Thu, 19 Jul 2018 13:58:32 -0400 Original-Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:40860) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fgDCA-0003Zy-TS; Thu, 19 Jul 2018 13:58:31 -0400 Original-Received: by mail-lj1-x229.google.com with SMTP id j19-v6so8750016ljc.7; Thu, 19 Jul 2018 10:58:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Kb89ZxH1DBeJVFkA/BTLTYfPXZI1BdgYA+0Nvsk9Tsw=; b=fMPiGOrSC2L8qapSy80KWF8J6Erp67aOoLMifpU08JhLmq93YZ6YwJfmSxU9YNgypB 6yvLs0VbU0oKpJdV+ujOM7EbvHNeBIg1o/YKgFr0NN8jgxp2a3BTsSumD9QIF7SLGK2V JpmFgxszlmcy3yfevkT0eh0c3Hdiz4ptstVAtQtnFTmU8JfMpg3ZBDKcIx5ZhEow8yG9 LTU04LCis96R+3GY4bR+fkA1sQu7xx8zNzh4KsJToKWlTUtUQZomo3hM28SEoDkxTKmJ BfA+HR09k+2AvMrgCQxMFgk4fpwOqDZ5fQdEdDFKRlXgVWqNqibFxkeY4Ra28+RAx0ez qhWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Kb89ZxH1DBeJVFkA/BTLTYfPXZI1BdgYA+0Nvsk9Tsw=; b=hMyc1Q725JlnqV31laBfXz2Cxf/TjWDIRFZ4ODiytDE8A8Jecm5HMGnjIFjhJ7efnh pTFvxqSZRSJnj6swpq2snTMKeW1xyRFxNSaupWVeT2ywhX1tybcZqohv0LtWnflNsgXj 9jpVpoBg5Hm3+2y+qKOjb2/9Or7CAld2KFICYr86cw5JHedDG//abScIew8lN+SR8/Qs CQSN00cUY2+f3MZ7eAMc7n/vq1PHFO+DjGoOyyt0nDLubTAMMV1sy1WQj3tlKYvboG+l PaS9uM2yjr3lFUMjj0dVvYKLJM6qHEvh8Cwf0nRztGlsBrAJ8o/Pp6axPnW8qwEMxkwj aaOA== X-Gm-Message-State: AOUpUlHqasrO/Gx+0ga7zwPSm+CgYG4DpYl5RX/ZvWcf7Y0cnoshMyzc LEqZuyO5zKH6ORMjChM/WNmABQsoQKvEwHxEHkelYvx0 X-Google-Smtp-Source: AAOMgpdNgwupvLCpHVMfPm/bjWDhz+lGGetWqAo2W+m1CLdWOhMQbLx/JHkKSQLVCQ5ATPU/d7LkVs8D9BinaKZWUsY= X-Received: by 2002:a2e:9742:: with SMTP id f2-v6mr8988013ljj.5.1532023109196; Thu, 19 Jul 2018 10:58:29 -0700 (PDT) In-Reply-To: <838t672ka4.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::229 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117501 Archived-At: Ah yes. Thanks! I missed reading that in doc-string the first time. That works. If the return code is not 0, I then just ask the user to see the process buffer. On Thu, Jul 19, 2018 at 1:44 PM Eli Zaretskii wrote: > > What's the canonical way to check if the process initiated using > > call-process failed? > > The usual method is to examine the return value of call-process. > -- Kaushal Modi