Skip to content
Snippets Groups Projects
Commit d87e6f67 authored by Tony Salomone's avatar Tony Salomone
Browse files

Display error message from API on model download

parent fb3a0a32
No related branches found
No related tags found
No related merge requests found
...@@ -330,10 +330,9 @@ export default function ModelStore() { ...@@ -330,10 +330,9 @@ export default function ModelStore() {
setCurrentlyDownloading(null); setCurrentlyDownloading(null);
setJobId(null); setJobId(null);
return alert( return alert(
'Failed to download: this model may require a huggingface access token (in settings).' `Failed to download:\n${response.message}`
); );
} }
const job_id = response?.job_id;
setCurrentlyDownloading(null); setCurrentlyDownloading(null);
modelGalleryMutate(); modelGalleryMutate();
} catch (e) { } catch (e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment