mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
23 lines
526 B
C++
23 lines
526 B
C++
// Copyright 2015 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "sky/engine/tonic/dart_error.h"
|
|
|
|
#include "base/logging.h"
|
|
|
|
namespace blink {
|
|
namespace DartError {
|
|
const char kInvalidArgument[] = "Invalid argument.";
|
|
} // namespace DartError
|
|
|
|
bool LogIfError(Dart_Handle handle) {
|
|
if (Dart_IsError(handle)) {
|
|
LOG(ERROR) << Dart_GetError(handle);
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
} // namespace blink
|