Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / tools / gn / copy_target_generator.cc
index 544ef5f..994011e 100644 (file)
@@ -23,11 +23,9 @@ CopyTargetGenerator::~CopyTargetGenerator() {
 void CopyTargetGenerator::DoRun() {
   target_->set_output_type(Target::COPY_FILES);
 
-  FillSources();
-  if (err_->has_error())
+  if (!FillSources())
     return;
-  FillOutputs(true);
-  if (err_->has_error())
+  if (!FillOutputs(true))
     return;
 
   if (target_->sources().empty()) {