Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Return right container name when a docker run fail. #128

Merged

Conversation

danielebarbaro
Copy link
Contributor

Hi @mattstauffer, i found and fix this:
Screenshot 2020-09-18 at 12 31 12

Comment on lines 123 to 125
$containerName = array_key_exists('container_name', $parameters) ? $parameters['container_name'] : '';
$imageName = $parameters['image_name'];
throw new Exception("Failed installing {$imageName}. The container {$containerName} is already in use.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$containerName = array_key_exists('container_name', $parameters) ? $parameters['container_name'] : '';
$imageName = $parameters['image_name'];
throw new Exception("Failed installing {$imageName}. The container {$containerName} is already in use.");
throw new Exception("Failed installing {$parameters['imageName']}.");

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's more generic. I can change my PR if you want 😃

@mattstauffer mattstauffer merged commit ee154d4 into tighten:main Sep 26, 2020
@mattstauffer
Copy link
Member

Thanks @danielebarbaro!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants