debian-mirror-gitlab/lib/gitlab/utils/error_message.rb
2023-06-20 00:43:36 +05:30

19 lines
345 B
Ruby

# frozen_string_literal: true
module Gitlab
module Utils
module ErrorMessage
extend self
UF_ERROR_PREFIX = 'UF'
def to_user_facing(message)
prefixed_error_message(message, UF_ERROR_PREFIX)
end
def prefixed_error_message(message, prefix)
"#{prefix}: #{message}"
end
end
end
end