Ah, will update.

On Thursday, June 20, 2013, Jared Wilkening wrote:

> In libs/perl/shock.pl:
>
> > +        print STDERR "[error] unable to download via shock-client: $node => $path: $msg\n";
> > +        return undef;
> > +    }
> > +    return $path;
> > +}
> > +
> > +sub create_node {
> > +    my ($self, $data, $attr, $type) = @_;
> > +    return $self->upload(undef, $data, $attr);
> > +}
> > +
> > +sub upload {
> > +    my ($self, $node, $data, $attr) = @_;
> > +
> > +    unless ($data || $attr) {
> > +        print STDERR "[error] need atleast one of 'file' or 'attributes'\n";
>
> creating an empty node is a valid operation
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/MG-RAST/Shock/pull/73/files#r4797752>
> .
>