mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Merge pull request #1 from viper3400/1.2
Fix in CallExternalCommand: Exception message "Error calling external…
This commit is contained in:
commit
e03df48a26
1 changed files with 3 additions and 3 deletions
|
@ -121,7 +121,7 @@ namespace ExternalCommand {
|
|||
if (config.OutputToClipboard) {
|
||||
ClipboardHelper.SetClipboardData(output);
|
||||
}
|
||||
if (uriMatches != null && uriMatches.Count >= 0) {
|
||||
if (uriMatches != null && uriMatches.Count > 0) {
|
||||
exportInformation.Uri = uriMatches[0].Groups[1].Value;
|
||||
LOG.InfoFormat("Got URI : {0} ", exportInformation.Uri);
|
||||
if (config.UriToClipboard) {
|
||||
|
@ -134,10 +134,10 @@ namespace ExternalCommand {
|
|||
exportInformation.ExportMade = false;
|
||||
exportInformation.ErrorMessage = error;
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
LOG.WarnFormat("Error calling external command: {0} ", exportInformation.ErrorMessage);
|
||||
} catch (Exception ex) {
|
||||
exportInformation.ExportMade = false;
|
||||
exportInformation.ErrorMessage = ex.Message;
|
||||
LOG.WarnFormat("Error calling external command: {0} ", exportInformation.ErrorMessage);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue