diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index 7aed8d01b..6f88e1a20 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -30,7 +30,9 @@ var ScreenshotService = class { let sender = invocation.get_sender(); if (this._screenShooter.has(sender) || lockedDown) { - invocation.return_value(GLib.Variant.new('(bs)', [false, ''])); + invocation.return_error_literal( + Gio.IOErrorEnum, Gio.IOErrorEnum.BUSY, + 'There is an ongoing operation for this sender'); return null; }