You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Sprintf("The --source-map parameter was passed in, but the source URL in the module at '%s' is invalid: '%s'. Note that the module URL must have a double-slash to separate the repo URL from the path within the repo!", err.ModulePath, err.ModuleSourceURL)
150
+
returnfmt.Sprintf(
151
+
"The --source-map parameter was passed in, but the source URL in the module at '%s' is invalid: '%s'."+
152
+
" Note that the module URL must have a double-slash to separate the repo URL from the path within the repo!",
153
+
err.ModulePath, err.ModuleSourceURL,
154
+
)
147
155
}
148
156
149
157
// ParsingModulePathError is an error type for when module path cannot be parsed from source URL.
@@ -152,7 +160,11 @@ type ParsingModulePathError struct {
152
160
}
153
161
154
162
func (errParsingModulePathError) Error() string {
155
-
returnfmt.Sprintf("Unable to obtain the module path from the source URL '%s'. Ensure that the URL is in a supported format.", err.ModuleSourceURL)
163
+
returnfmt.Sprintf(
164
+
"Unable to obtain the module path from the source URL '%s'."+
165
+
" Ensure that the URL is in a supported format.",
166
+
err.ModuleSourceURL,
167
+
)
156
168
}
157
169
158
170
// Regexp for module name extraction. It assumes that the query string has already been stripped off.
returnnil, errors.Errorf("cannot have less than 1 max retry in errors.retry %q, but you specified %d", retryBlock.Label, retryBlock.MaxAttempts)
253
+
returnnil, errors.Errorf(
254
+
"cannot have less than 1 max retry in errors.retry %q, but you specified %d",
255
+
retryBlock.Label, retryBlock.MaxAttempts,
256
+
)
241
257
}
242
258
243
259
ifretryBlock.SleepIntervalSec<0 {
244
-
returnnil, errors.Errorf("cannot sleep for less than 0 seconds in errors.retry %q, but you specified %d", retryBlock.Label, retryBlock.SleepIntervalSec)
260
+
returnnil, errors.Errorf(
261
+
"cannot sleep for less than 0 seconds in errors.retry %q, but you specified %d",
0 commit comments