Fixed bugs in errors in streams handling
Authored by: artyom-beilis 2014-10-28
Parent: [r2277]
Child: [r2279]