Index: dm/DMTask.cpp |
diff --git a/dm/DMTask.cpp b/dm/DMTask.cpp |
index a5c75f0f8a5d10f99fcb5de6518a375e77e73d9b..2f009f067028532e9fbf954164d9c489726feb97 100644 |
--- a/dm/DMTask.cpp |
+++ b/dm/DMTask.cpp |
@@ -26,8 +26,7 @@ void Task::run() { |
if (!this->shouldSkip()) { |
this->draw(); |
} |
- fReporter->finish(); |
- fReporter->updateStatusLine(); |
+ fReporter->finish(this->name()); |
delete this; |
} |
@@ -39,8 +38,12 @@ void Task::spawnChild(Task* task) { |
} |
} |
-void Task::fail() { |
- fReporter->fail(this->name()); |
+void Task::fail(const char* msg) { |
+ SkString failure(this->name()); |
+ if (msg) { |
+ failure.appendf(": %s", msg); |
+ } |
+ fReporter->fail(failure); |
} |
} // namespace DM |