| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "sky/engine/config.h" |
| 6 #include "sky/engine/tonic/dart_error.h" |
| 7 |
| 8 #include "base/logging.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 namespace DartError { |
| 13 |
| 14 const char kInvalidArgument[] = "Invalid argument."; |
| 15 |
| 16 } // namespace DartError |
| 17 |
| 18 bool LogIfError(Dart_Handle handle) { |
| 19 if (Dart_IsError(handle)) { |
| 20 LOG(ERROR) << Dart_GetError(handle); |
| 21 return true; |
| 22 } |
| 23 return false; |
| 24 } |
| 25 |
| 26 } // namespace blink |
| OLD | NEW |