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

Unified Diff: runtime/bin/main.cc

Issue 8383037: Improve error handling in the process library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 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 | « runtime/bin/gen_snapshot.cc ('k') | runtime/bin/process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index f1e9552cb80ce5c1a8b16954289819c76f8e0bea..ec16e6985d57fcb1a6e19b78707ee63749d8ac25 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -2,7 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
@@ -229,11 +228,11 @@ int main(int argc, char** argv) {
// Print the exception object.
fprintf(stderr, "An unhandled exception has been thrown\n");
Dart_Result exception_result = Dart_GetException(result_obj);
- assert(Dart_IsValidResult(exception_result));
+ ASSERT(Dart_IsValidResult(exception_result));
PrintObject(stderr, Dart_GetResult(exception_result));
// Print the stack trace.
Dart_Result stacktrace = Dart_GetStacktrace(result_obj);
- assert(Dart_IsValidResult(stacktrace));
+ ASSERT(Dart_IsValidResult(stacktrace));
PrintObject(stderr, Dart_GetResult(stacktrace));
fprintf(stderr, "\n");
Dart_ExitScope();
« no previous file with comments | « runtime/bin/gen_snapshot.cc ('k') | runtime/bin/process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698