From: Guillermo J. Rozas Date: Wed, 4 Apr 1990 18:23:16 +0000 (+0000) Subject: Change file-touch to give an error only if the result of the primitive X-Git-Tag: 20090517-FFI~11457 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=91b76a6daa15cd38d7ed6b4a8c947ca18b95ae49;p=mit-scheme.git Change file-touch to give an error only if the result of the primitive is an error string. --- diff --git a/v7/src/runtime/unxprm.scm b/v7/src/runtime/unxprm.scm index 755945654..fc80fc1a0 100644 --- a/v7/src/runtime/unxprm.scm +++ b/v7/src/runtime/unxprm.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/unxprm.scm,v 1.6 1989/12/08 01:52:05 cph Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/unxprm.scm,v 1.7 1990/04/04 18:23:16 jinx Exp $ Copyright (c) 1988, 1989 Massachusetts Institute of Technology @@ -140,7 +140,7 @@ MIT in each case. |# (or (pathname->input-truename pathname) (pathname-new-version pathname false))))))) (let ((result ((ucode-primitive file-touch) filename))) - (if result + (if (string? result) (error error-type:file result (error-irritant/noise #\newline)