Skip to content

Commit ab81928

Browse files
committed
Panic on inability to resolve working directory
This is an unexpected error with no clear cause, so the panic is more appropriate.
1 parent c09c82d commit ab81928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: configuration/configuration.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func Initialize(flags *pflag.FlagSet, projectPaths []string) error {
9999
// Default to using current working directory.
100100
workingDirectoryPath, err := os.Getwd()
101101
if err != nil {
102-
return fmt.Errorf("Error when setting default PROJECT_PATH argument: %s", err)
102+
panic(err)
103103
}
104104
targetPaths.Add(paths.New(workingDirectoryPath))
105105
} else {

0 commit comments

Comments
 (0)