mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
6318c3a1c9
commit
7ec20da83c
|
@ -143,9 +143,7 @@ func (t *translateContext) translateNotebookPath(literal, localFullPath, localRe
|
||||||
for _, ext := range extensions {
|
for _, ext := range extensions {
|
||||||
literalWithExt := literal + ext
|
literalWithExt := literal + ext
|
||||||
localRelPathWithExt := filepath.ToSlash(localRelPath + ext)
|
localRelPathWithExt := filepath.ToSlash(localRelPath + ext)
|
||||||
// TODO: inline the err call.
|
if _, err := fs.Stat(t.b.SyncRoot, localRelPathWithExt); err == nil {
|
||||||
_, err := fs.Stat(t.b.SyncRoot, localRelPathWithExt)
|
|
||||||
if err == nil {
|
|
||||||
return "", fmt.Errorf(`notebook %s not found. Did you mean %s?
|
return "", fmt.Errorf(`notebook %s not found. Did you mean %s?
|
||||||
Local notebook references are expected to contain one of the following
|
Local notebook references are expected to contain one of the following
|
||||||
file extensions: [%s]`, literal, literalWithExt, strings.Join(extensions, ", "))
|
file extensions: [%s]`, literal, literalWithExt, strings.Join(extensions, ", "))
|
||||||
|
|
Loading…
Reference in New Issue