summaryrefslogtreecommitdiff
path: root/MLKReader.m
diff options
context:
space:
mode:
Diffstat (limited to 'MLKReader.m')
-rw-r--r--MLKReader.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/MLKReader.m b/MLKReader.m
index 1edc651..edf682f 100644
--- a/MLKReader.m
+++ b/MLKReader.m
@@ -456,8 +456,11 @@
// A single package marker means we have to check whether
// the symbol is external in the package.
symbolName = [token substringFromIndex:(packageMarker+1)];
- if (![[package exportedSymbols] containsObject:[package intern:token]])
- [[[MLKReaderError alloc] init] raise];
+ symbol = [package intern:symbolName];
+ if (![[package exportedSymbols] containsObject:symbol])
+ [NSException raise:@"MLKReaderError"
+ format:@"Package %@ does not export symbol %@.",
+ package, symbol];
}
}