MCPcopy Create free account
hub / github.com/error311/FileRise / setError

Function setError

public/js/sharedFolderView.js:211–216  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

209 };
210
211 const setError = (msg) => {
212 if (!progressWrap) return;
213 progressWrap.classList.remove('is-indeterminate');
214 progressWrap.classList.add('is-error');
215 if (progressText) progressText.textContent = msg || tx('share_upload_failed', null, 'Upload failed.');
216 };
217
218 uploadForm.addEventListener('submit', function (e) {
219 if (!fileInput || !fileInput.files || !fileInput.files.length) return;

Callers 1

Calls 1

txFunction · 0.70

Tested by

no test coverage detected