Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
### Bundles
* Add new Lakeflow Pipelines support for bundle generate ([#3568](https://github.com/databricks/cli/pull/3568))
* Introduce new bundle variable: `${workspace.current_user.domain_friendly_name}` ([#3623](https://github.com/databricks/cli/pull/3623))
* Improve the output of bundle run when bundle is not deployed ([#3652](https://github.com/databricks/cli/pull/3652))

### API Changes
2 changes: 1 addition & 1 deletion acceptance/bundle/run/no-state/output.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Error: no deployment state. Did you forget to run 'databricks bundle deploy'?
Error: resource not found or not yet deployed. Did you forget to run 'databricks bundle deploy'?


Exit code (musterr): 1
2 changes: 1 addition & 1 deletion acceptance/bundle/run/state-wiped/output.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

>>> musterr [CLI] bundle run foo
Error: no deployment state. Did you forget to run 'databricks bundle deploy'?
Error: resource not found or not yet deployed. Did you forget to run 'databricks bundle deploy'?


Exit code (musterr): 1
Expand Down
2 changes: 1 addition & 1 deletion bundle/statemgmt/state_load.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func StateToBundle(ctx context.Context, state ExportedResourcesMap, config *conf

func (l *load) validateState(state ExportedResourcesMap) error {
if len(state) == 0 && slices.Contains(l.modes, ErrorOnEmptyState) {
return errors.New("no deployment state. Did you forget to run 'databricks bundle deploy'?")
return errors.New("resource not found or not yet deployed. Did you forget to run 'databricks bundle deploy'?")
}

return nil
Expand Down
Loading