diff --git a/lib/async.dart b/lib/async.dart index 006d33d..99e50cf 100644 --- a/lib/async.dart +++ b/lib/async.dart @@ -2,6 +2,5 @@ library async; export 'src/exceptions.dart'; -export 'src/file_system_converters.dart'; export 'src/shell_base.dart' hide $; export 'src/shell_async.dart'; diff --git a/lib/src/file_system_converters.dart b/lib/src/file_system_converters.dart index 6bf2a73..64cd257 100644 --- a/lib/src/file_system_converters.dart +++ b/lib/src/file_system_converters.dart @@ -15,7 +15,8 @@ class FileSystemEntityConverter extends Converter { } else if (FileSystemEntity.isLinkSync(input)) { return Link(input); } - throw ShellResultConversionException(FileSystemEntity, input); + throw ShellResultConversionException(FileSystemEntity, input, + addtionalMessage: "The input was not an existing FileSystemEntity."); } } @@ -30,7 +31,8 @@ class FileConverter extends Converter { if (file.existsSync()) { return file; } - throw ShellResultConversionException(File, input); + throw ShellResultConversionException(File, input, + addtionalMessage: "The input was not an existing File."); } } @@ -45,7 +47,8 @@ class DirectoryConverter extends Converter { if (directory.existsSync()) { return directory; } - throw ShellResultConversionException(Directory, input); + throw ShellResultConversionException(Directory, input, + addtionalMessage: "The input was not an existing Directory."); } } @@ -60,6 +63,7 @@ class LinkConverter extends Converter { if (link.existsSync()) { return link; } - throw ShellResultConversionException(Link, input); + throw ShellResultConversionException(Link, input, + addtionalMessage: "The input was not an existing Link."); } } diff --git a/lib/sync.dart b/lib/sync.dart index c3fe766..29add6c 100644 --- a/lib/sync.dart +++ b/lib/sync.dart @@ -2,6 +2,5 @@ library sync; export 'src/exceptions.dart'; -export 'src/file_system_converters.dart'; export 'src/shell_base.dart' hide $; export 'src/shell_sync.dart';