ecl_stream_to_handle: fix problem when passing stream

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 <dkochmanski@turtle-solutions.eu>
This commit is contained in:
Daniel Kochmański 2015-06-25 12:34:56 +02:00
parent dd2e3903bc
commit 26690cacdd

View file

@ -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;
}
}