shload(): fixed error reporting