~chipaca/snappy/snappy-tar-pack-mknod

« back to all changes in this revision

Viewing changes to snappy/snapp.go

  • Committer: Michael Vogt
  • Date: 2015-02-13 13:29:27 UTC
  • mfrom: (171 snappy)
  • mto: This revision was merged to the branch mainline in revision 172.
  • Revision ID: michael.vogt@ubuntu.com-20150213132927-5eyg71l1yysvw6ul
mergedĀ lp:snappy

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
 
74
74
        yamlData, err := ioutil.ReadAll(r)
75
75
        if err != nil {
76
 
                log.Printf("Can not read '%s'", r)
 
76
                log.Printf("Can not read '%v'", r)
77
77
                return nil
78
78
        }
79
79
 
397
397
        case resp.StatusCode == 404:
398
398
                return parts, ErrRemoteSnapNotFound
399
399
        case resp.StatusCode != 200:
400
 
                return parts, fmt.Errorf("SnapUbuntuStoreRepository: unexpected http statusCode %i for %s", resp.StatusCode, snapName)
 
400
                return parts, fmt.Errorf("SnapUbuntuStoreRepository: unexpected http statusCode %v for %s", resp.StatusCode, snapName)
401
401
        }
402
402
 
403
403
        // and decode json