File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import (
1414 "github.com/projectdiscovery/proxify/pkg/logger/elastic"
1515 "github.com/projectdiscovery/proxify/pkg/logger/kafka"
1616 "github.com/projectdiscovery/proxify/pkg/types"
17- errorutil "github.com/projectdiscovery/utils/errors "
17+ "github.com/projectdiscovery/utils/errkit "
1818 fileutil "github.com/projectdiscovery/utils/file"
1919 permissionutil "github.com/projectdiscovery/utils/permission"
2020 updateutils "github.com/projectdiscovery/utils/update"
@@ -264,7 +264,7 @@ func (options *Options) createLoggerConfigIfNotExists() error {
264264 }
265265 loggerConfigFile , err := os .Create (options .LoggerConfig )
266266 if err != nil {
267- return errorutil . NewWithErr (err ). Msgf ( "could not create config file" )
267+ return errkit . Wrap (err , "could not create config file" )
268268 }
269269 defer func () {
270270 _ = loggerConfigFile .Close ()
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ import (
3232 "github.com/projectdiscovery/proxify/pkg/util"
3333 rbtransport "github.com/projectdiscovery/roundrobin/transport"
3434 "github.com/projectdiscovery/tinydns"
35- errorutil "github.com/projectdiscovery/utils/errors "
35+ "github.com/projectdiscovery/utils/errkit "
3636 readerUtil "github.com/projectdiscovery/utils/reader"
3737 sliceutil "github.com/projectdiscovery/utils/slice"
3838 stringsutil "github.com/projectdiscovery/utils/strings"
@@ -478,7 +478,7 @@ func (p *Proxy) setupHTTPProxy() error {
478478 hp .Miscellaneous .IgnoreWebSocketError = true
479479 rt , err := p .getRoundTripper ()
480480 if err != nil {
481- return errorutil . NewWithErr (err ). Msgf ( "failed to setup transport" )
481+ return errkit . Wrap (err , "failed to setup transport" )
482482 }
483483 hp .SetRoundTripper (rt )
484484 dialContextFunc := func (ctx context.Context , a , b string ) (net.Conn , error ) {
You can’t perform that action at this time.
0 commit comments