mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 15:56:10 +08:00
fix(database): Do not send empty error JSON
This commit is contained in:
parent
54558c5e5b
commit
883e2c0f40
|
@ -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…
Reference in a new issue