X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgovpn%2Fcommon.go;h=003792e7d7d32a8ed5d58a678bd88af4346b7cae;hb=f3e3de2b0169bbecad4aefaf8902cbb4a1d9ce6a;hp=002b1fbfd43a55ba72c8a6704b93abd550dbb86f;hpb=cb347258e44c70b4b8339a7561ca1023b69c9d2c;p=govpn.git diff --git a/src/cypherpunks.ru/govpn/common.go b/src/cypherpunks.ru/govpn/common.go index 002b1fb..003792e 100644 --- a/src/cypherpunks.ru/govpn/common.go +++ b/src/cypherpunks.ru/govpn/common.go @@ -89,7 +89,11 @@ func (p Protocol) MarshalJSON() ([]byte, error) { func (p *Protocol) UnmarshalJSON(encoded []byte) error { var str string if err := json.Unmarshal(encoded, &str); err != nil { - return errors.Wrapf(err, "Can't unmarshall to string %q", hex.EncodeToString(encoded)) + return errors.Wrapf( + err, + "Can't unmarshall to string %q", + hex.EncodeToString(encoded), + ) } proto, err := NewProtocolFromString(str) if err != nil {