🐛 Fix error handling and logging

This commit is contained in:
2024-03-13 17:26:30 +04:00
parent 6265458bc3
commit 5af2714abb
8 changed files with 92 additions and 25 deletions

View File

@ -93,7 +93,7 @@
<h1>Oh My URL!</h1>
<form action="/" method="post">
{{ if .Error }}
<label for="urlInput" style="color: red;">{{ .Error }}</label>
<label for="urlInput" style="color: red;">{{ .Error.Error }}</label>
{{ end }}
<input type="url" id="urlInput" name="url" placeholder="https://example.com/" value="{{ if .MainURL }}{{ .MainURL }}{{ end }}" required>
{{ if .ShortedURL }}