Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
fix: should fail if project alias wan't found
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Feb 11, 2020
1 parent 151b0c9 commit d4d132e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions firebase/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ func (f *Firebase) setProjectID(projectAlias string, firebaseProjectConfigFile s
if err != nil {
return fmt.Errorf("An error occurred while reading config file: %w", err)
}
if decodedConfigs.Projects[projectAlias] == "" {
return fmt.Errorf("Couldn't find the project alias provided!")
}
f.projectId = decodedConfigs.Projects[projectAlias]
return nil
}
Expand Down

0 comments on commit d4d132e

Please sign in to comment.