From 521ac7a89adb97bcd1781b4131333554ccd4de87 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 27 Aug 2011 20:36:34 -0700 Subject: Refined upb_status. --- upb/pb/glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'upb/pb/glue.c') diff --git a/upb/pb/glue.c b/upb/pb/glue.c index e13db3e..8034c54 100644 --- a/upb/pb/glue.c +++ b/upb/pb/glue.c @@ -127,7 +127,7 @@ void upb_read_descriptorfile(upb_symtab *symtab, const char *fname, size_t len; char *data = upb_readfile(fname, &len); if (!data) { - upb_status_setf(status, UPB_ERROR, "Couldn't read file: %s", fname); + upb_status_seterrf(status, "Couldn't read file: %s", fname); return; } upb_read_descriptor(symtab, data, len, status); -- cgit v1.2.3