Skip to content

Commit 1ea66e4

Browse files
committed
fix missing GotoError message on critical bug
1 parent c6240ad commit 1ea66e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

goto/gotomagic/magic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import os
1212
import sys
1313

14-
from .text import GotoWarning
14+
from .text import GotoWarning, GotoError
1515
from .. import settings
1616
from . import utils
1717

@@ -228,4 +228,4 @@ def save_magic(jfile, magic):
228228
f.write(data)
229229
return None
230230
except Exception as e:
231-
return GotoWarning("magic_could_not_be_saved", message=str(e))
231+
return GotoError("magic_could_not_be_saved", message=str(e))

0 commit comments

Comments
 (0)