func newMarshalableError(err error) *marshalableError {
	return &marshalableError{err}
}
newMarshalableError builds an error which encodes its error message into JSON
package graylog
import (
	"encoding/json"
	"github.com/pkg/errors"
)