change chrome path priority close #1
This commit is contained in:
@@ -11,11 +11,14 @@ func Convert(chromePath, inputFile, outputFile string) error {
|
||||
Input: inputFile,
|
||||
Output: outputFile,
|
||||
}
|
||||
c := converter.NewConverter(chromePath)
|
||||
c, err := converter.NewConverter(chromePath)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return c.Convert(input)
|
||||
}
|
||||
|
||||
// NewConverterInstance start new chrome headless shell instance
|
||||
func NewConverterInstance(chromePath string) *converter.Converter {
|
||||
func NewConverterInstance(chromePath string) (*converter.Converter, error) {
|
||||
return converter.NewConverter(chromePath)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user