Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

DFU report error if fail to create target directory

If the target directory for a dfu copy couldn't be created this fix
now reports an error.  Previously you got an error from the subsequent
file create which was harder to diagnose.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
  • Loading branch information...
commit 299d015a9ab87a197983d3c2fe72886429d3f9b1 1 parent c89cb82
Gavin Halliday ghalliday authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  dali/ft/fttransform.cpp
3  dali/ft/fttransform.cpp
@@ -812,7 +812,8 @@ bool TransferServer::pull()
812 812
813 813 StringBuffer localFilename;
814 814 localTempFilename.getPath(localFilename);
815   - recursiveCreateDirectoryForFile(localFilename);
  815 + if (!recursiveCreateDirectoryForFile(localFilename))
  816 + throw MakeOsException(GetLastError(), "Failed to create directory for file: %s", localFilename.str());
816 817
817 818 OwnedIFile outFile = createIFile(localFilename.str());
818 819 OwnedIFileIO outio = outFile->openShared(IFOcreate,IFSHnone);

0 comments on commit 299d015

Please sign in to comment.
Something went wrong with that request. Please try again.