From f4267839c8c7e218ff238de168fe62bd56a066f7 Mon Sep 17 00:00:00 2001 From: Wojciech Kosowicz Date: Mon, 2 Mar 2015 12:49:54 +0100 Subject: [PATCH] [Filesystem] File.resolve throws NOT_FOUND exception when fails This fix is required for increase passrate of TCT tests Change-Id: Iba629bda3ad38dcb89aaf3c51a4ab4918924517b Signed-off-by: Wojciech Kosowicz --- src/filesystem/js/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filesystem/js/file.js b/src/filesystem/js/file.js index f031ed86..6e2299ad 100644 --- a/src/filesystem/js/file.js +++ b/src/filesystem/js/file.js @@ -442,7 +442,7 @@ File.prototype.resolve = function(filePath) { var _realPath = commonFS_.toRealPath(_newPath); var _result = native_.callSync('File_statSync', {location: _realPath}); if (native_.isFailure(_result)) { - throw new tizen.WebAPIException(tizen.WebAPIException.IO_ERR, native_.getErrorObject(_result)); + throw new tizen.WebAPIException(tizen.WebAPIException.NOT_FOUND_ERR, native_.getErrorObject(_result)); } var _statObj = native_.getResultObject(_result); var _fileInfo = commonFS_.getFileInfo(_newPath, _statObj, false, this.mode); -- 2.34.1