Permalink
Browse files

more error handling without the shitty errors

  • Loading branch information...
1 parent aa66ebe commit 8c6f44377c6ea8c245d7516704a33d9b824574e0 Bob Briski committed Jul 9, 2012
Showing with 9 additions and 5 deletions.
  1. BIN piggy/date_utils.jar
  2. +9 −5 piggy/src/date_utils/TimeZoneConverter.java
View
Binary file not shown.
@@ -26,14 +26,18 @@ public String exec(Tuple input) throws IOException {
return null;
}
+ String date;
+ String dateFormat;
+ String fromTimeZone;
+ String toTimeZone;
try {
- String date = input.get(0).toString();
- String dateFormat = input.get(1).toString();
- String fromTimeZone = input.get(2).toString();
- String toTimeZone = input.get(3).toString();
+ date = input.get(0).toString();
+ dateFormat = input.get(1).toString();
+ fromTimeZone = input.get(2).toString();
+ toTimeZone = input.get(3).toString();
}
catch (Exception e) {
- warn("Could not parse input, possible nulls");
+ warn("Could not parse input, possible nulls", PigWarning.UDF_WARNING_1);
return null;
}
Date d = null;

0 comments on commit 8c6f443

Please sign in to comment.