[ 
https://issues.apache.org/jira/browse/PIG-297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yiping Han updated PIG-297:
---------------------------

    Status: Patch Available  (was: Open)

Index: GruntParser.java
===================================================================
--- GruntParser.java    (revision 8658)
+++ GruntParser.java    (working copy)
@@ -466,7 +466,8 @@
             sb.append("File or directory ");
             sb.append(path);
             sb.append(" does not exist.");
-            throw new IOException(sb.toString());
+            //throw new IOException(sb.toString());
+            System.out.println(sb);
         }
             
         dfsPath.delete();


> RM a non-existing file should not fail the script
> -------------------------------------------------
>
>                 Key: PIG-297
>                 URL: https://issues.apache.org/jira/browse/PIG-297
>             Project: Pig
>          Issue Type: Improvement
>          Components: grunt
>            Reporter: Yiping Han
>            Priority: Minor
>
> rm is commonly used to remove the existing output before re-execute a script. 
> However, when the output is not existing, rm will fail and grunt will 
> terminate the execution. Such a behavior is  very inconvenience. Expected 
> grunt behavior would print some error message and continue to execute the 
> script.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to