Fix #2210: tell user to :nativeinstall if :guiset fails

This commit is contained in:
Michael Kaufman 2020-07-02 10:14:30 -07:00 committed by Oliver Blanthorn
parent ae1d4afc1d
commit 789a64bdb7
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -429,7 +429,10 @@ export async function guiset_quiet(rule: string, option: string) {
*/
//#background
export async function guiset(rule: string, option: string) {
await guiset_quiet(rule, option)
if (!(await guiset_quiet(rule, option))) {
throw new Error(":guiset failed. Please ensure native messenger is installed.")
}
return fillcmdline_tmp(3000, "userChrome.css written. Please restart Firefox to see the changes.")
}