Include more info to track down bot failure.

TBR=vsm@google.com

Change-Id: I50ae861f99b4c35c37596a6b3372d54cf7942070
Reviewed-on: https://dart-review.googlesource.com/39000
Reviewed-by: Terry Lucas <terry@google.com>
Commit-Queue: Terry Lucas <terry@google.com>
This commit is contained in:
Terry Lucas 2018-02-06 02:51:49 +00:00
parent f92d1a6a7e
commit 6ac51102a0

View file

@ -57,7 +57,7 @@ main() async {
entry = await fs.root.getFile('file4');
fail("File file4 should not exist.");
} catch (error) {
expect(true, error is DomException);
expect(error is DomException, true, reason: "Not DomException - not exist");
expect(DomException.NOT_FOUND, error.name);
}
@ -69,7 +69,7 @@ main() async {
var entry = await fileAndDir.dir.getFile(fileAndDir.file.name);
fail("file not removed");
} catch (error) {
expect(true, error is DomException);
expect(error is DomException, true, reason: "Not DomException - removed");
expect(DomException.NOT_FOUND, error.name);
}
});