Remove assert, which checks if widget package file exsits
and replace it with checks from boost lib for file existence and
return error on failure.
Change-Id: I75dd117d85bef0fe1313da8a2510fe5bd6673dc7
Step::Status StepUnzip::process() {
assert(!context_->file_path.get().empty());
- assert(!access(context_->file_path.get().c_str(), F_OK));
+ if (!boost::filesystem::exists(context_->file_path.get())) {
+ LOG(ERROR) << "Specified widget does not exist: "
+ << context_->file_path.get();
+ return Step::Status::ERROR;
+ }
bf::path tmp_dir =
GenerateTmpDir(context_->root_application_path.get());