mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-05 04:04:38 +08:00
fix(database): Do not send empty error JSON
This commit is contained in:
parent
9542d1179e
commit
72dd3171ad
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ class DatabaseManager
|
|||
return
|
||||
|
||||
@_query db, query, values, (err, result) ->
|
||||
errJSONString = JSON.stringify(err)
|
||||
errJSONString = if err then JSON.stringify(err) else null
|
||||
event.sender.send('database-result', {queryKey, errJSONString, result})
|
||||
|
||||
# Resolves when a new database has been created and the initial setup
|
||||
|
|
Loading…
Add table
Reference in a new issue