mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 23:47:58 +01:00
Fix some double-printed errors on :source, and make :source! work properly for Ex files.
This commit is contained in:
@@ -391,9 +391,11 @@ lookup:
|
|||||||
dactyl.execute(line, { setFrom: file });
|
dactyl.execute(line, { setFrom: file });
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
dactyl.echoerr("Error detected while processing " + file.path);
|
if (!silent) {
|
||||||
dactyl.echomsg("line\t" + this.sourcing.line + ":");
|
dactyl.echoerr("Error detected while processing " + file.path);
|
||||||
dactyl.reportError(e, true);
|
dactyl.echomsg("line\t" + this.sourcing.line + ":");
|
||||||
|
dactyl.reportError(e, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -406,7 +408,8 @@ lookup:
|
|||||||
dactyl.log("Sourced: " + filename, 3);
|
dactyl.log("Sourced: " + filename, 3);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
dactyl.reportError(e);
|
if (!(e instanceof FailedAssertion))
|
||||||
|
dactyl.reportError(e);
|
||||||
let message = "Sourcing file: " + (e.echoerr || file.path + ": " + e);
|
let message = "Sourcing file: " + (e.echoerr || file.path + ": " + e);
|
||||||
if (!silent)
|
if (!silent)
|
||||||
dactyl.echoerr(message);
|
dactyl.echoerr(message);
|
||||||
|
|||||||
Reference in New Issue
Block a user