Skip to content

Commit ff83343

Browse files
fix(app): Allow resizing of non-existent app in undeployed service (#90)
1 parent f9d97dd commit ff83343

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [X.X.X] - 2025-02-XX
9+
10+
### Fixed
11+
12+
* Resizing a non-existent service in an undeployed app no longer causes an error.
13+
814
## [4.6.3] - 2024-11-04
915

1016
### Fixed

app/app.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ type DeployStatus struct {
129129
}
130130

131131
func (d *DeployStatus) FindProcess(name string) (*Process, error) {
132+
if d == nil {
133+
return nil, fmt.Errorf("process '%s' not found", name)
134+
}
132135
for _, p := range d.Processes {
133136
if p.Name == name {
134137
return &p, nil

0 commit comments

Comments
 (0)