Skip to content

Commit

Permalink
refactor(driver): Update error messages for unsupported operations
Browse files Browse the repository at this point in the history
  • Loading branch information
gfieni committed Dec 8, 2018
1 parent 8e8fdee commit f62e5e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,20 +329,20 @@ func (d *Driver) Remove() error {

// Kill don't do anything
func (d *Driver) Kill() error {
return fmt.Errorf("You can't kill a machine on Grid'5000")
return fmt.Errorf("The 'kill' operation is not supported on Grid'5000")
}

// Start don't do anything
func (d *Driver) Start() error {
return fmt.Errorf("You can't start a machine on Grid'5000")
return fmt.Errorf("The 'start' operation is not supported on Grid'5000")
}

// Stop don't do anything
func (d *Driver) Stop() error {
return fmt.Errorf("You can't stop a machine on Grid'5000")
return fmt.Errorf("The 'stop' operation is not supported on Grid'5000")
}

// Restart don't do anything
func (d *Driver) Restart() error {
return fmt.Errorf("You can't restart a machine on Grid'5000")
return fmt.Errorf("The 'restart' operation is not supported on Grid'5000")
}

0 comments on commit f62e5e5

Please sign in to comment.