summaryrefslogtreecommitdiff
path: root/MLKStreamStream.m
diff options
context:
space:
mode:
Diffstat (limited to 'MLKStreamStream.m')
-rw-r--r--MLKStreamStream.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/MLKStreamStream.m b/MLKStreamStream.m
index 7e19932..e6afcb7 100644
--- a/MLKStreamStream.m
+++ b/MLKStreamStream.m
@@ -16,6 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#import "MLKStreamError.h"
#import "MLKStreamStream.h"
#import "runtime-compatibility.h"
#import "util.h"
@@ -69,8 +70,7 @@
if (bytes_read < 1)
{
- [NSException raise:@"MLKStreamError"
- format:@"Tried to read beyond end of file."];
+ @throw LAUTORELEASE ([[MLKStreamError alloc] initWithStream:self]);
}
return octet;