Improve error reporting in symbol resolver

Signed-off-by: Michael Buesch <m@bues.ch>