Merge pull request #1072 from tridactyl/exclaim_why

[RFC] Try to make exclaim give better errors
This commit is contained in:
Oliver Blanthorn 2018-10-12 17:11:05 +01:00 committed by GitHub
commit a555c6a330
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 8 deletions

View file

@ -749,7 +749,7 @@ export function cssparse(...css: string[]) {
/** @hidden */
//#background
export async function loadtheme(themename: string) {
if (!await Native.nativegate("0.1.9")) return
if (!(await Native.nativegate("0.1.9"))) return
const separator = (await browserBg.runtime.getPlatformInfo().os) == "win" ? "\\" : "/"
// remove the "tridactylrc" bit so that we're left with the directory
const path =
@ -871,7 +871,9 @@ export async function nativeopen(url: string, ...firefoxArgs: string[]) {
*/
//#background
export async function exclaim(...str: string[]) {
if (await Native.nativegate()) {
fillcmdline((await Native.run(str.join(" "))).content)
}
} // should consider how to give option to fillcmdline or not. We need flags.
/**
@ -879,7 +881,9 @@ export async function exclaim(...str: string[]) {
*/
//#background
export async function exclaim_quiet(...str: string[]) {
if (await Native.nativegate()) {
return (await Native.run(str.join(" "))).content
}
}
/**

View file

@ -589,15 +589,16 @@ class default_config {
* Logging levels. Unless you're debugging Tridactyl, it's unlikely you'll ever need to change these.
*/
logging: { [key: string]: LoggingLevel } = {
messaging: "warning",
cmdline: "warning",
controller: "warning",
containers: "warning",
hinting: "warning",
state: "warning",
controller: "warning",
excmd: "error",
styling: "warning",
hinting: "warning",
messaging: "warning",
native: "warning",
performance: "warning",
state: "warning",
styling: "warning",
}
noiframeon: string[] = []