libgit2dart/lib/src/error.dart
Aleksey Kulikov 7f0cd86e72 test: remove checks for messages of throws
Platform specific messages for throws is different, so checking that test
throws proper type should be enough
2021-10-27 16:44:04 +03:00

17 lines
393 B
Dart

// coverage:ignore-file
import 'dart:ffi';
import 'package:ffi/ffi.dart';
import 'package:libgit2dart/src/bindings/libgit2_bindings.dart';
/// Details of the last error that occurred.
class LibGit2Error {
LibGit2Error(this._errorPointer);
final Pointer<git_error> _errorPointer;
@override
String toString() {
return _errorPointer.ref.message.cast<Utf8>().toDartString();
}
}