Fossil SCM
Make error message more obvious when short UUID length is less than 4.
Commit
4b1b56c99cb498fd056b251f1e03ad754c6021d4
Parent
53072ae878c9580…
1 file changed
+4
-1
+4
-1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -1915,11 +1915,14 @@ | ||
| 1915 | 1915 | event_page(); |
| 1916 | 1916 | return; |
| 1917 | 1917 | } |
| 1918 | 1918 | } |
| 1919 | 1919 | style_header("No Such Object"); |
| 1920 | - @ <p>No such object of length %d(nLen): %h(zName)</p> | |
| 1920 | + @ <p>No such object: %h(zName)</p> | |
| 1921 | + if( nLen<4 ){ | |
| 1922 | + @ <p>Objects of length < 4 are too ambiguous to worry about</p> | |
| 1923 | + } | |
| 1921 | 1924 | style_footer(); |
| 1922 | 1925 | return; |
| 1923 | 1926 | }else if( rc==2 ){ |
| 1924 | 1927 | cgi_set_parameter("src","info"); |
| 1925 | 1928 | ambiguous_page(); |
| 1926 | 1929 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -1915,11 +1915,14 @@ | |
| 1915 | event_page(); |
| 1916 | return; |
| 1917 | } |
| 1918 | } |
| 1919 | style_header("No Such Object"); |
| 1920 | @ <p>No such object of length %d(nLen): %h(zName)</p> |
| 1921 | style_footer(); |
| 1922 | return; |
| 1923 | }else if( rc==2 ){ |
| 1924 | cgi_set_parameter("src","info"); |
| 1925 | ambiguous_page(); |
| 1926 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -1915,11 +1915,14 @@ | |
| 1915 | event_page(); |
| 1916 | return; |
| 1917 | } |
| 1918 | } |
| 1919 | style_header("No Such Object"); |
| 1920 | @ <p>No such object: %h(zName)</p> |
| 1921 | if( nLen<4 ){ |
| 1922 | @ <p>Objects of length < 4 are too ambiguous to worry about</p> |
| 1923 | } |
| 1924 | style_footer(); |
| 1925 | return; |
| 1926 | }else if( rc==2 ){ |
| 1927 | cgi_set_parameter("src","info"); |
| 1928 | ambiguous_page(); |
| 1929 |