CloudMigration - Display different error messages for create migration errors (#94683)
* start on tokens * more error messages * more handling * rephrased with suggestions from Daniel * separate gms parse method * use translation * refactor initial idea to use error obj * use error dto result * handle gms client * clean logs and comments * fix tests * tests for gms * test and lint * lint * one more handling from gms * typing in fe * use error interface * use validation error * remove unused gms error * use errorlib and helper function in fe * regen api * use same error util * one more error to handle
This commit is contained in:
@@ -62,3 +62,14 @@ const (
|
||||
EventStartUploadingSnapshot LocalEventType = "start_uploading_snapshot"
|
||||
EventDoneUploadingSnapshot LocalEventType = "done_uploading_snapshot"
|
||||
)
|
||||
|
||||
type GMSAPIError struct {
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
// Error messages returned from GMS
|
||||
var (
|
||||
GMSErrorMessageInstanceUnreachable = "instance is unreachable"
|
||||
GMSErrorMessageInstanceCheckingError = "checking if instance is reachable"
|
||||
GMSErrorMessageInstanceFetching = "fetching instance by stack id"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user