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

Side by Side Diff: packages/which/lib/src/which_impl.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « packages/which/lib/src/util.dart ('k') | packages/which/lib/which.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 library which.src.which_impl; 2 library which.src.which_impl;
3 3
4 import 'dart:async'; 4 import 'dart:async';
5 5
6 import 'package:when/when.dart'; 6 import 'package:when/when.dart';
7 7
8 import 'util.dart'; 8 import 'util.dart';
9 9
10 Future<String> which( 10 Future<String> which(
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 toSequence(candidatePaths), 43 toSequence(candidatePaths),
44 (path) => isExecutable(path, isWindows), 44 (path) => isExecutable(path, isWindows),
45 orElse: orElse != null ? orElse : () => _commandNotFound(command, null)) , 45 orElse: orElse != null ? orElse : () => _commandNotFound(command, null)) ,
46 onError: (e) => _commandNotFound(command, e)); 46 onError: (e) => _commandNotFound(command, e));
47 47
48 _commandNotFound(String command, e) { 48 _commandNotFound(String command, e) {
49 var message = 'Command not found: $command'; 49 var message = 'Command not found: $command';
50 if (e != null) message += '\n$e'; 50 if (e != null) message += '\n$e';
51 throw new StateError(message); 51 throw new StateError(message);
52 } 52 }
OLDNEW
« no previous file with comments | « packages/which/lib/src/util.dart ('k') | packages/which/lib/which.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698