Skip to content

Commit

Permalink
SFTP Plugin: indicate that error messages are reported by the device
Browse files Browse the repository at this point in the history
Amend the notification title for SFTP errors to indicate that the error
is coming directly from the device, not GSConnect.

closes #882
  • Loading branch information
andyholmes committed Sep 11, 2020
1 parent 3297635 commit c72931a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/plugins/sftp.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@ var Plugin = GObject.registerClass({
}

/**
* Handle an error returned by the remote device.
* Handle an error reported by the remote device.
*
* @param {Core.Packet} packet - a `kdeconnect.sftp`
*/
_handleError(packet) {
this.device.showNotification({
id: 'sftp-error',
title: `${this.device.name}: ${Metadata.label}`,
title: _('%s reported an error').format(this.device.name),
body: packet.body.errorMessage,
icon: new Gio.ThemedIcon({name: 'dialog-error-symbolic'}),
priority: Gio.NotificationPriority.HIGH,
Expand Down

0 comments on commit c72931a

Please sign in to comment.