Skip to content

Commit 8a08ee7

Browse files
committed
More aggressive optimizations
1 parent 22f9ae2 commit 8a08ee7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ae.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ task test, "Test the project":
2828
exec &"nim c {flags} -r tests/rationals"
2929

3030
task make, "Export the project":
31-
exec &"nim c -d:danger {flags} --out:auto-editor src/main.nim"
31+
exec &"nim c -d:danger --panics:on {flags} --passC:\"-flto\" --out:auto-editor src/main.nim"
3232
when defined(macosx):
3333
exec "strip -ur auto-editor"
3434
exec "stat -f \"%z bytes\" ./auto-editor"

src/edit.nim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ proc editMedia*(args: var mainArgs) =
228228
applyArgs(tlV3, args)
229229
else:
230230
# Make `timeline` from media file
231-
var container = av.open(args.input)
231+
var container = (
232+
try: av.open(args.input) except IOError: error &"Input file doesn't exist: {args.input}"
233+
)
232234
defer: container.close()
233235

234236
usePath = args.input

0 commit comments

Comments
 (0)