added functionality to delete existing partitions before reinstall
Some checks failed
Build / build (push) Failing after 4m53s
Some checks failed
Build / build (push) Failing after 4m53s
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
package ipp
|
||||
|
||||
import "fmt"
|
||||
|
||||
// IsNotExistsError checks a given error whether a printer or class does not exist
|
||||
func IsNotExistsError(err error) bool {
|
||||
if err == nil {
|
||||
return false
|
||||
}
|
||||
|
||||
return err.Error() == "The printer or class does not exist."
|
||||
}
|
||||
|
||||
// IPPError used for non ok ipp status codes
|
||||
type IPPError struct {
|
||||
Status int16
|
||||
Message string
|
||||
}
|
||||
|
||||
func (e IPPError) Error() string {
|
||||
return fmt.Sprintf("ipp status: %d, message: %s", e.Status, e.Message)
|
||||
}
|
||||
|
||||
// HTTPError used for non 200 http codes
|
||||
type HTTPError struct {
|
||||
Code int
|
||||
}
|
||||
|
||||
func (e HTTPError) Error() string {
|
||||
return fmt.Sprintf("got http code %d", e.Code)
|
||||
}
|
||||
Reference in New Issue
Block a user