Skip to content

Commit 7103cec

Browse files
committed
chore: fix typescript error
1 parent db3ad1a commit 7103cec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/adapters/show-document-adapter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ export async function showDocument(params: ShowDocumentParams): Promise<ShowDocu
4949
}
5050
return { success: true }
5151
} catch (e) {
52-
atom.notifications.addError(e)
52+
const error = e instanceof Error ? e.message : String(e);
53+
atom.notifications.addError(error)
5354
return { success: false }
5455
}
5556
}

0 commit comments

Comments
 (0)