Commit 290f6d8e authored by mercury233's avatar mercury233

update download error hint

parent 74de64c1
Pipeline #41764 failed with stages
in 4 minutes and 13 seconds
......@@ -164,7 +164,15 @@ export class AppDetailComponent implements OnInit, OnChanges {
}
} catch (e) {
console.error(e);
new Notification(targetApp.name, {body: '下载失败 ' + e.message});
let errmsg = e.message || e.toString();
if (errmsg.includes('No URI available')) {
errmsg = '所有的备用下载地址都无法连接';
}
let errmsgMatch = errmsg.match(/message: (.+)/);
if (errmsgMatch) {
errmsg = errmsgMatch[1];
}
new Notification(targetApp.name, { body: '下载失败: ' + errmsg });
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment