Skip to content

Commit 1be02e6

Browse files
Adding FrozenString backtrace back in.
1 parent e3c9f85 commit 1be02e6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/AppleNote.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def initialize(z_pk, znote, ztitle, zdata, creation_time, modify_time, account,
115115
@primary_key = z_pk
116116
@note_id = znote
117117
@title = ztitle
118-
@compressed_data = zdata.force_encoding("UTF-8")
118+
@compressed_data = zdata
119119
@creation_time = convert_core_time(creation_time)
120120
@modify_time = convert_core_time(modify_time)
121121
@account = account

lib/AppleNoteStore.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,8 @@ def rip_notes()
686686
self.rip_note(row["ZNOTE"])
687687
rescue StandardError => error
688688
# warn "\033[101m#{e}\033[m"
689-
@logger.error("AppleNoteStore: NoteStore tried to rip Note#{row["ZNOTE"]} but had to rescue error: #{error}")
689+
@logger.error("AppleNoteStore: NoteStore tried to rip Note #{row["ZNOTE"]} but had to rescue error: #{error}")
690+
@logger.error("Backtrace: #{error.backtrace.join("\n\t")}") if error.is_a? FrozenError
690691
end
691692
end
692693
end

0 commit comments

Comments
 (0)