File tree 1 file changed +5
-3
lines changed 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ use crate::utils::proguard_upload;
23
23
use crate :: utils:: system:: QuietExit ;
24
24
use crate :: utils:: ui:: { copy_with_progress, make_byte_progress_bar} ;
25
25
26
+ const CHUNK_UPLOAD_ENV_VAR : & str = "SENTRY_EXPERIMENTAL_PROGUARD_CHUNK_UPLOAD" ;
27
+
26
28
#[ derive( Debug ) ]
27
29
pub struct MappingRef {
28
30
pub path : PathBuf ,
@@ -206,11 +208,11 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
206
208
let authenticated_api;
207
209
let ( org, project) ;
208
210
209
- if env:: var ( "SENTRY_EXPERIMENTAL_PROGUARD_CHUNK_UPLOAD" ) == Ok ( "1" . into ( ) ) {
211
+ if env:: var ( CHUNK_UPLOAD_ENV_VAR ) == Ok ( "1" . into ( ) ) {
210
212
log:: warn!(
211
213
"EXPERIMENTAL FEATURE: Uploading proguard mappings using chunked uploading. \
212
214
Some functionality may be unavailable when using chunked uploading. Please unset \
213
- the SENTRY_EXPERIMENTAL_PROGUARD_CHUNK_UPLOAD variable if you encounter any \
215
+ the {CHUNK_UPLOAD_ENV_VAR} variable if you encounter any \
214
216
problems."
215
217
) ;
216
218
@@ -224,7 +226,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
224
226
options. ok_or_else ( || {
225
227
anyhow:: anyhow!(
226
228
"server does not support chunked uploading. unset \
227
- SENTRY_EXPERIMENTAL_PROGUARD_CHUNK_UPLOAD to continue."
229
+ {CHUNK_UPLOAD_ENV_VAR} to continue."
228
230
)
229
231
} )
230
232
} ) ?;
You can’t perform that action at this time.
0 commit comments