From 26690cacddcb72e4d8f30f20735f92e6f7a0deeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kochma=C5=84ski?= Date: Thu, 25 Jun 2015 12:34:56 +0200 Subject: [PATCH] ecl_stream_to_handle: fix problem when passing stream MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Function for some types of streams without handler (not all) was calling internal-error stopping whole implementation instead of returning `INVALID_HANDLER'. Signed-off-by: Daniel KochmaƄski --- src/c/file.d | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/c/file.d b/src/c/file.d index 773a0ea01..e97505657 100755 --- a/src/c/file.d +++ b/src/c/file.d @@ -4185,9 +4185,8 @@ ecl_stream_to_handle(cl_object s, bool output) #if defined(ECL_MS_WINDOWS_HOST) case ecl_smm_io_wcon: #endif - return -1; default: - ecl_internal_error("illegal stream mode"); + return -1; } }