File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 21212121 "errorUnsafeVirusScan" : " CivitAI detected malware or suspicious content in this file" ,
21222122 "errorModelTypeNotSupported" : " This model type is not supported" ,
21232123 "errorUnknown" : " An unexpected error occurred" ,
2124+ "errorUploadFailed" : " Failed to upload asset. Please try again." ,
21242125 "ariaLabel" : {
21252126 "assetCard" : " {name} - {type} asset" ,
21262127 "loadingAsset" : " Loading asset"
Original file line number Diff line number Diff line change @@ -341,9 +341,11 @@ function createAssetService() {
341341 } )
342342
343343 if ( ! res . ok ) {
344- const errorText = await res . text ( ) . catch ( ( ) => 'Unknown error' )
345344 throw new Error (
346- `Failed to upload asset: Server returned ${ res . status } . ${ errorText } `
345+ st (
346+ 'assetBrowser.errorUploadFailed' ,
347+ 'Failed to upload asset. Please try again.'
348+ )
347349 )
348350 }
349351
You can’t perform that action at this time.
0 commit comments