Merge pull request #423 from lgcareer/branch-1.0.2

if hdfs path is not exists return result
This commit is contained in:
lgcareer 2019-06-03 17:03:15 +08:00 committed by GitHub
commit 35c0020be5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -643,6 +643,7 @@ public class ResourcesService extends BaseService {
logger.error("{} is not exist", resourcePath);
result.setCode(Status.HDFS_OPERATION_ERROR.getCode());
result.setMsg(String.format("%s is not exist", resourcePath));
return result;
}
} catch (Exception e) {
logger.error(e.getMessage(), e);