Added additional info to error message for --add-to-album

This commit is contained in:
Rhet Turnbull
2021-06-18 14:03:59 -07:00
parent f1902b7fd4
commit 64bb07a026
3 changed files with 4 additions and 4 deletions

View File

@@ -1559,7 +1559,7 @@ Substitution Description
{lf} A line feed: '\n', alias for {newline} {lf} A line feed: '\n', alias for {newline}
{cr} A carriage return: '\r' {cr} A carriage return: '\r'
{crlf} a carriage return + line feed: '\r\n' {crlf} a carriage return + line feed: '\r\n'
{osxphotos_version} The osxphotos version, e.g. '0.42.36' {osxphotos_version} The osxphotos version, e.g. '0.42.37'
{osxphotos_cmd_line} The full command line used to run osxphotos {osxphotos_cmd_line} The full command line used to run osxphotos
The following substitutions may result in multiple values. Thus if specified for The following substitutions may result in multiple values. Thus if specified for
@@ -3347,7 +3347,7 @@ The following template field substitutions are availabe for use the templating s
|{lf}|A line feed: '\n', alias for {newline}| |{lf}|A line feed: '\n', alias for {newline}|
|{cr}|A carriage return: '\r'| |{cr}|A carriage return: '\r'|
|{crlf}|a carriage return + line feed: '\r\n'| |{crlf}|a carriage return + line feed: '\r\n'|
|{osxphotos_version}|The osxphotos version, e.g. '0.42.36'| |{osxphotos_version}|The osxphotos version, e.g. '0.42.37'|
|{osxphotos_cmd_line}|The full command line used to run osxphotos| |{osxphotos_cmd_line}|The full command line used to run osxphotos|
|{album}|Album(s) photo is contained in| |{album}|Album(s) photo is contained in|
|{folder_album}|Folder path + album photo is contained in. e.g. 'Folder/Subfolder/Album' or just 'Album' if no enclosing folder| |{folder_album}|Folder path + album photo is contained in. e.g. 'Folder/Subfolder/Album' or just 'Album' if no enclosing folder|

View File

@@ -1,3 +1,3 @@
""" version info """ """ version info """
__version__ = "0.42.36" __version__ = "0.42.37"

View File

@@ -2124,7 +2124,7 @@ def query(
album_query.add_list(photos) album_query.add_list(photos)
except Exception as e: except Exception as e:
click.secho( click.secho(
f"Error adding photos to album {add_to_album}", f"Error adding photos to album {add_to_album}: {e}",
fg=CLI_COLOR_ERROR, fg=CLI_COLOR_ERROR,
err=True, err=True,
) )