Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(757)

Unified Diff: runtime/bin/process.cc

Issue 884143002: Refactor the process creation code on POSIX platforms (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix Mac OS and Android buiæd Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/process_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process.cc
diff --git a/runtime/bin/process.cc b/runtime/bin/process.cc
index 52035301c3877989d9e5defa62bc1a87cf503dcb..0f3e5bc0881d06ccb3eb46f0d11a242070b09c24 100644
--- a/runtime/bin/process.cc
+++ b/runtime/bin/process.cc
@@ -151,7 +151,10 @@ void FUNCTION_NAME(Process_Start)(Dart_NativeArguments args) {
DartUtils::SetIntegerField(
status_handle, "_errorCode", error_code);
DartUtils::SetStringField(
- status_handle, "_errorMessage", os_error_message);
+ status_handle,
+ "_errorMessage",
+ os_error_message != NULL ? os_error_message
+ : "Cannot get error message");
}
delete[] string_args;
delete[] string_environment;
« no previous file with comments | « no previous file | runtime/bin/process_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698