Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: runtime/bin/file_system_watcher.cc

Issue 23830014: Throw exception if path can't be watched. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« runtime/bin/file_patch.dart ('K') | « runtime/bin/file_patch.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_system_watcher.cc
diff --git a/runtime/bin/file_system_watcher.cc b/runtime/bin/file_system_watcher.cc
index f5efb69d6e32c39a45791015521125d089081aee..7893ffb4d8b2c51ffc2526de3212d2ed9c3aab87 100644
--- a/runtime/bin/file_system_watcher.cc
+++ b/runtime/bin/file_system_watcher.cc
@@ -35,7 +35,7 @@ void FUNCTION_NAME(FileSystemWatcher_WatchPath)(Dart_NativeArguments args) {
bool recursive = DartUtils::GetBooleanValue(Dart_GetNativeArgument(args, 3));
intptr_t id = FileSystemWatcher::WatchPath(path, events, recursive);
if (id == -1) {
- Dart_PropagateError(DartUtils::NewDartOSError());
+ Dart_ThrowException(DartUtils::NewDartOSError());
} else {
SetWatcherIdNativeField(watcher, id);
}
« runtime/bin/file_patch.dart ('K') | « runtime/bin/file_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698