mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 12:49:08 -04:00
Platform specific messages for throws is different, so checking that test throws proper type should be enough
17 lines
393 B
Dart
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();
|
|
}
|
|
}
|