Allow Api::Error to take a printf style format string so that useful error message can be constructed more easily #350
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Index: /Users/benl/svn-work/dart/dart/runtime/vm/dart_api_impl.cc
===================================================================
--- /Users/benl/svn-work/dart/dart/runtime/vm/dart_api_impl.cc (revision 1149)
+++ /Users/benl/svn-work/dart/dart/runtime/vm/dart_api_impl.cc (working copy)
@@ -504,7 +504,9 @@
cls_name ^= param.raw();
const Class& cls = Class::Handle(lib.LookupClass(cls_name));
if (cls.IsNull()) {
}
return Api::NewLocalHandle(cls);
}
I really wanted to make the error more heplful, but I couldn't figure
out how, mainly because if anything was wrong with the build, I didn't
get any diagnostics, just:
The text was updated successfully, but these errors were encountered: