Gitea: Adding deploy key with duplicate name: unclear error message

Created on 12 Oct 2020  路  4Comments  路  Source: go-gitea/gitea

  • Gitea version (or commit ref): 845d0afb3326f147dc78059bbdcecf45c3a9a0df
  • Git version: 2.25.1
  • Operating system: Ubuntu 20.04.1
  • Database (use [x]):

    • [ ] PostgreSQL

    • [ ] MySQL

    • [ ] MSSQL

    • [x] SQLite

  • Can you reproduce the bug at https://try.gitea.io:

    • [x] Yes (provide example URL)

    • [ ] No

    • [ ] Not relevant

  • Log gist:

Description

Gitea only displays a HTTP 500 error page when the user attempts to add a deploy key that has the same name as an existing key (the keys themselves are different). I'd like to work on the displaying of a more informative error message when this occurs.

Screenshots


image

Hacktoberfest good first issue

All 4 comments

We'd be happy to receive a PR for this :)

Fantastic. I was wondering if you could give me some tips on how I get dlv or vscode set up to debug Gitea. I tried the launch.json files provided by the project and couldn't get debugging to work on vscode.

I dont think you will have to debug a lot of go code ...
the easyest way is to add some fmt.Println(var-you-like-to-konw-value-of) in the code ...

gotcha, I'll give it a try!

Was this page helpful?
0 / 5 - 0 ratings