| Index: runtime/vm/dart_api_impl.cc
|
| ===================================================================
|
| --- runtime/vm/dart_api_impl.cc (revision 15227)
|
| +++ runtime/vm/dart_api_impl.cc (working copy)
|
| @@ -739,7 +739,12 @@
|
| DART_EXPORT bool Dart_Initialize(Dart_IsolateCreateCallback create,
|
| Dart_IsolateInterruptCallback interrupt,
|
| Dart_IsolateShutdownCallback shutdown) {
|
| - return Dart::InitOnce(create, interrupt, shutdown);
|
| + const char* err_msg = Dart::InitOnce(create, interrupt, shutdown);
|
| + if (err_msg != NULL) {
|
| + OS::PrintErr("Dart_Initialize: %s\n", err_msg);
|
| + return false;
|
| + }
|
| + return true;
|
| }
|
|
|
| DART_EXPORT bool Dart_SetVMFlags(int argc, const char** argv) {
|
|
|