Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Automate
Agent sessions
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
goSDN
Merge requests
!328
Resolve "Getting a device from the file store system only works with ID"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "Getting a device from the file store system only works with ID"
215-getting-a-device-from-the-file-store-system-only-works-with-id
into
develop
Overview
6
Commits
2
Pipelines
4
Changes
4
All threads resolved!
Thread options
Hide all comments
Merged
Resolve "Getting a device from the file store system only works with ID"
Ghost User
requested to merge
215-getting-a-device-from-the-file-store-system-only-works-with-id
into
develop
Jun 7, 2022
Overview
6
Commits
2
Pipelines
4
Changes
4
All threads resolved!
Thread options
Hide all comments
Description
See
#215 (closed)
Edited
Jun 9, 2022
by
Ghost User
0
0
Merge request reports
Viewing commit
5fc949c1
Show latest version
4 files
+
12
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
5fc949c1
added option to search pnds and devices by name in the filestore, fixed wrong variable naming
· 5fc949c1
Fabian Seidl
authored
Jun 7, 2022
controller/nucleus/errors/errors.go
+
3
−
2
View file @ 5fc949c1
Edit in single-file editor
Open in Web IDE
Show full file
@@ -24,11 +24,12 @@ func (e *ErrNil) Error() string {
// ErrNotFound implements the Error interface and is called if a specific ID
// of a storable item could not be found.
type
ErrNotFound
struct
{
ID
interface
{}
ID
interface
{}
Name
interface
{}
}
func
(
e
*
ErrNotFound
)
Error
()
string
{
return
fmt
.
Sprintf
(
"%v
not found"
,
e
.
ID
)
return
fmt
.
Sprintf
(
"
ID: %v or Name:
%vnot found"
,
e
.
ID
,
e
.
Name
)
}
// ErrAlreadyExists implements the Error interface and is called if a specific ID
Loading