@@ -145,14 +145,14 @@ func runE(client resources.Client) func(cmd *cobra.Command, args []string) error
145145
146146 highlightKey , projectID , err := verifyApiKey (result .AccountID , projectResult .ID , backendUrl )
147147 if err != nil {
148- return fmt .Errorf ("failed to verify API key: %v " , err )
148+ return fmt .Errorf ("failed to verify API key: %w " , err )
149149 }
150150
151151 fmt .Printf ("Starting to upload source maps from %s\n " , path )
152152
153153 files , err := getAllSourceMapFiles (path )
154154 if err != nil {
155- return fmt .Errorf ("failed to find sourcemap files: %v " , err )
155+ return fmt .Errorf ("failed to find sourcemap files: %w " , err )
156156 }
157157
158158 if len (files ) == 0 {
@@ -166,12 +166,12 @@ func runE(client resources.Client) func(cmd *cobra.Command, args []string) error
166166
167167 uploadUrls , err := getSourceMapUploadUrls (highlightKey , s3Keys , backendUrl )
168168 if err != nil {
169- return fmt .Errorf ("failed to get upload URLs: %v " , err )
169+ return fmt .Errorf ("failed to get upload URLs: %w " , err )
170170 }
171171
172172 for i , file := range files {
173173 if err := uploadFile (file .Path , uploadUrls [i ], file .Name ); err != nil {
174- return fmt .Errorf ("failed to upload file %s: %v " , file .Path , err )
174+ return fmt .Errorf ("failed to upload file %s: %w " , file .Path , err )
175175 }
176176 }
177177
0 commit comments