Skip to content

Commit

Permalink
clean up exception messages further. return null for getPath()
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensel committed Apr 17, 2009
1 parent fe30446 commit 23353a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/java/cascading/jdbc/JDBCTap.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public String getTableName()
*/
public Path getPath()
{
return new Path( "jdbc:/" + connectionUrl.replaceAll( ":", "_" ) );
return null;
}

public TupleEntryIterator openForRead( JobConf conf ) throws IOException
Expand Down
2 changes: 1 addition & 1 deletion src/java/cascading/jdbc/db/DBOutputFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void close( Reporter reporter ) throws IOException
LOG.warn( StringUtils.stringifyException( sqlException ) );
}

throw new IOException( "unable to commit batch", exception );
throw new IOException( "unable to commit batch: " + exception.getMessage(), exception.getNextException() );
}
finally
{
Expand Down

0 comments on commit 23353a9

Please sign in to comment.