diff --git a/cmd/meroxa/root/apps/deploy.go b/cmd/meroxa/root/apps/deploy.go index 6e8b91a8e..eacfb61c2 100644 --- a/cmd/meroxa/root/apps/deploy.go +++ b/cmd/meroxa/root/apps/deploy.go @@ -228,10 +228,10 @@ func (d *Deploy) uploadSource(ctx context.Context, appPath, url string) error { }(fileToWrite) if err != nil { - panic(err) + return err } if _, err = io.Copy(fileToWrite, &buf); err != nil { - panic(err) + return err } // We clean up Dockerfile as last step