Skip to content

Commit

Permalink
[api] improve api createpatchinfo error message
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Jan 5, 2012
1 parent 76541a6 commit abcaa5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/controllers/source_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1828,7 +1828,7 @@ def index_project_createpatchinfo
if DbPackage.exists_by_project_and_name( params[:project], pkg_name )
unless params[:force]
render_error :status => 400, :errorcode => "patchinfo_file_exists",
:message => "The patchinfo file exists already. Either use force=1 or updatepatchinfo."
:message => "createpatchinfo command: the patchinfo file exists already. Either use force=1 to re-create it or updatepatchinfo for updating."
return
end
pkg = DbPackage.get_by_project_and_name params[:project], pkg_name
Expand Down

0 comments on commit abcaa5e

Please sign in to comment.