Adjusted sreadl to return on error