- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
Hello,
I'd like to return exit error codes if an error occures, but I don't want to output this exit error code.
Currently I use:
But this shows not only the error message but also a "spurious" one. If I write
or simply
then the exit status code is zero.
Any ideas?
Tobias
I'd like to return exit error codes if an error occures, but I don't want to output this exit error code.
Currently I use:
if(iostat /= 0) then
write(ERROR_UNIT,*) 'Cannot open file "',trim(filename),'"'
stop 1
end if
But this shows not only the error message but also a "spurious" one. If I write
stop "some error string"
or simply
stop
then the exit status code is zero.
Any ideas?
Tobias
Ссылка скопирована
1 Ответить
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
Try CALL EXIT(1) instead.

Ответить
Параметры темы
- Подписка на RSS-канал
- Отметить тему как новую
- Отметить тему как прочитанную
- Выполнить отслеживание данной Тема для текущего пользователя
- Закладка
- Подписаться
- Страница в формате печати